Welcome to the Cookbook

loading...

11.1.1 Getting Cake

First, let's get a copy of fresh Cake code.

To get a fresh download, visit the CakePHP project on github: http://github.com/cakephp/cakephp/downloads and download the latest release of 1.3

You can also clone the the repository using git. git clone git://github.com/cakephp/cakephp.git

Regardless of how you downloaded it, place the code inside of your DocumentRoot. Once finished, your directory setup should look something like the following:

/path_to_document_root
    /app
    /cake
    /plugins
    /vendors
    .htaccess
    index.php
    README
  1. /path_to_document_root
  2. /app
  3. /cake
  4. /plugins
  5. /vendors
  6. .htaccess
  7. index.php
  8. README

Now might be a good time to learn a bit about how Cake's directory structure works: check out Chapter "Basic Principles of CakePHP", Section : CakePHP File Structure.