Google News
logo
CakePHP - Interview Questions
Explain layers of CakePHP?
CakePHP works on MVC structure. MVC stands for the model view controller. MVC is an architectural pattern that describes a way to structure our application and explains the responsibilities and interactions of each part in that structure:
 
Model layer : This layer has business logic implemented for the application, such as retrieving data, converting or processing data, validating data that comes under this layer.

View layer : This layer is responsible for rendering the front-end interface from the information provided from the model data.

Controller layer : This layer is used to handle the request from the user. It gets requests from clients, checks its validity, fetches data accordingly, allocated resources, selects presentational data accordingly, and finally delegates the rendering process.
Advertisement