What is MVC in CakePHP?

devquora
devquora

Posted On: Feb 22, 2018

 

    1 Answer Written

  •  devquora
    Answered by Priyag Chaudhary

    CakePHP follows an MVC software design pattern. MVC separates the application into three main parts.

    • The Model layer: It represents the business logic part of your application. It is responsible for retrieving the data and using it to convert into a meaningful form for your application. It includes processing, validating, associating, or other process related to handling the data.
    • The View layer: It represents the presentation layer of your application where the data is modeled. It is responsible for producing the presentational interface using the available data for your application.
    • The Controller layer: It handles the request from the user. It is responsible for rendering the correct response using the help of both the model and the view layer.

Related Questions

Please Login or Register to leave a response.

Related Questions

Cakephp Interview Questions

What is CakePHP ?

CakePHP is an open-source free web framework written in PHP scripting Language for rapid web development...

Cakephp Interview Questions

What are Hooks in CakePHP?

CakePHP hooks are callback functions that are called before or after a model operation.We define these functions in our Model classes...