Example
After you’ve downloaded, these are the files and folders you should see:
- The bin folder holds the Cake console executables.
- The config folder holds the Configuration files CakePHP uses. Database connection details, bootstrapping, core configuration files and more should be stored here.
- The plugins folder is where the Plugins your application uses are stored.
- The logs folder normally contains your log files, depending on your log configuration.
- The src folder will be where your application’s files will be placed.
- The tests folder will be where you put the test cases for your
application.
- The tmp folder is where CakePHP stores temporary data. The actual data it stores depends on how you have CakePHP configured, but this folder is usually used to store model descriptions and sometimes session information.
- The vendor folder is where CakePHP and other application dependencies will be installed. Make a personal commitment not to edit files in this folder.
- The webroot directory is the public document root of your application. It contains all the files you want to be publically reachable.
Make sure that the tmp and logs folders exist and are
writable, otherwise the performance of your application will be
severely impacted. In debug mode, CakePHP will warn you, if it is not
the case.
Inside src Folder
CakePHP’s src folder is where you will do most of your application development.
Console folder contains the console commands and console tasks for your application. For more information see Shells, Tasks & Console Tools.
Controller folder contains your application’s controllers and their components.
Locale folder stores string files for internationalization.
Model folder contains your application’s tables, entities and behaviors.
View - presentational classes are placed here: cells, helpers, and template files.
Template - presentational files are placed here: elements, error pages, layouts, and view template files.