Example
Will talk about directory structure of CakePHP, what each folder means.
CakePHP has some main folders
- app - It Contains our application source code, all our code lies under this directory.
- lib - This is the cakephp core liberary, it contains all the base cakephp library code. Editing code inside this directory is not suggested as they can cause error while upgrading the cakephp library.
- plugins - This contains the cakephp plugins code which will be used for our applicatin.
- vendors - This contains external code, This code will not use cakephp library.
- index.php - This is the index file.
We can have multiple applications hosted inside a single project. i.e they can use same lib folders, plugin and vendors.
To Modify the lib code, best practice is to extend them in our app folder and perform the modifications.
Plugins and vendors folder are shared by all the applications hosted in the same directory.
index.php is the file which is called first.
Now we should jump to our app folder