CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.
The following are the prerequisites for the environment for installing cakephp.
Downloading CakePHP:
Download the latest stable release of Cake version 1.2.6 from www.cakephp.org.
After downloaing the compressed file, extract the Cake release file, you should end up with a folder named like cakephp-cakephp1x-xxxxxx with sub folders inside it. The current downloads are offered from github. The following is the standard folder structure in CakePHP
app <DIR> cake <DIR> vendors <DIR> .gitignore 1 KB .htaccess 1 KB index.php 3 KB README 2 KB
The app folder is the core of a newly developed application and the cake folder contains the guts of CakePHP. It contains all the libraries and scripts.The docs folder holds change log information and other readme files. Any other non-Cake PHP scripts needed in your application are stored in the vendors folders.
Folder structure in app directory:
config <DIR> controllers <DIR> locale <DIR> models <DIR> plugins <DIR> tests <DIR> tmp <DIR> vendors <DIR> views <DIR> webroot <DIR> .htaccess 1 KB index.php 1 KB
All the extracted files must be in the root of the webserver, generally in folders named webroot, www, or public_html
When you navigate to http://localhost, you must get the following screen if cake php is successfully setup.
