CakePHP is an open source web application framework. It follows the Model-View-Controller (MVC) approach and written in PHP. CakePHP makes building web applications simpler, faster and require less code.
This CakePHP tutorial will drive you to the right direction for getting started with CakePHP framework and provide basic guide of CakePHP application development. Our step by step cakePHP tutorial helps beginners for install and configures the CakePHP application. You can learn CakePHP from scratch with our easy tutorial. Also we will develop a sample CakePHP project and it will help you for better understanding the whole process.
- Controller Conventions – Controller class names are plural, CamelCased and end in Controller.(
PostsController,LatestPostsController) - Model Conventions – Model class names are singular and CamelCased.(
Post,LatestPost) - Database Conventions – Table names corresponding to CakePHP models are plural and underscored. (
posts,latest_posts) - View Conventions – View template files are named after the controller functions they displayed, in an underscored form. The
postDetails()function of PostController class will look for a view template inapp/View/Post/post_details.ctp. The basic pattern isapp/View/Controller/underscored_function_name.ctp