XpertLab – Mobile Application Development Company in Junagadh
CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Associative Data Mapping, Front Controller, and MVC.
It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers guarantee a strict, but natural separation of business logic from data and presentation layers.
XpertLab – Mobile Application Development Company in Junagadh
Here are important features of CakePHP.
Below is a folder structure of CakePHP:
Folder | Description |
---|---|
Tests | This folder contains test cases for your application. |
Tmp | The temp folder stores temporary data. |
Vendor | This folder helps you to store CakePHP, and other application dependencies will be installed. |
Webroot | The Webroot stores all the files you want to be publicly reachable. |
Bin | The bin folder holds the Cake console executables. |
Logs | It contains your log files, which depends on your log configuration. |
Config | The config folder store the configuration files CakePHP uses |
Plugins | This folder contains Plugins for the application. is where the Plugins your application uses are stored. |
Src | It contains a console task and commands to manage your application.Locale Stores string files for internationalization.Model Contains your application’s tables, entities, and behaviors. |
Cake PHP splits operations into three parts:
Here, are steps to use MVC architecture in CakePHP:
Step 1) The client or user interacts with the view
Step 2) View alerts controller of the specific event.
Step 3) It sends a database request to the Model and Controller updates the model.
Step 4) The model alerts view that it has changed.
Step 5) View receives model data and updates itself according to received data.
XpertLab – Mobile Application Development Company in Junagadh