Home » Blog » General » CakePHP


posted in: General 0

Introduction of the cake PHP

The Latest CakePHP 3 is a framework of web development the PHP 7.1.CakePHP is designed to make common web-development tasks simple, and easy. By providing an all-in-one toolbox to get you started the various parts of CakePHP work well together or separately.The difference between the CakePHP 2.0 and 3.0 is that, in 2.0 is not full object-oriented but 3.0 CakePHP is fully object-oriented.CakePHP provides a basic organizational structure that covers class names, filenames, database table names, etc.

There are three types of layers in the CakePHP listed below

    • The Model Layer

    • The View Layer

    • The Controller Layer

The Model Layer

In Model layer, the business logic is included as the part of our application. It is responsible for getting data and converting it into the primary meaningful concepts in our application. This includes processing, validating, associating or other tasks related to handling data.


The View Layer

The View layer is the presentation of modeled data. It is separated from the model object and it is responsible for using the available information to create the presentation interface of our application might need.


The Controller Layer

The controller layer handles requests from customers. It is responsible for rendering a reaction with the useful resource of both the version and the view layers.

A controller may be seen as a manager that ensures that all assets needed for finishing a given task are delegated to the perfect workers. It waits for petitions from clients, checks their validity according to authentication or authorization rule, delegates data fetching or processing to the model, selects the kind of presentational data that the clients are accepting, finally delegates the rendering process to the View layer.

Leave a Reply