Saturday, June 18, 2011

Introduction to CAKEPHP and MVC architecture

CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. It uses MVC software design pattern.

MVC design pattern divides the application into three main parts :
Model : The model represents the database table.
Controller : It is used for writing logic for your application. All your business logic needs to be put into controller.

View : It is used to present the data of your application to end user.


Understanding MVC architecture :
         Whenever a user accesses the MVC application the dispatcher hands over the request to controller, controller performs the required operation with model(data in database table) and sends the request to view where the data is presented for the user.

Refer : http://book.cakephp.org/view/880/What-is-CakePHP-Why-Use-it#!/view/890/Understanding-Model-View-Controller

4 comments: