CakePHP MVC overview

Volunteered to work on a CakePHP website.  It’s a learning experience as I haven’t had much work exposure to MVC so this is pretty fun.

Model:

Implements the business logic. Responsible for retrieving data (via database or RESTful) and converting it into the appropriate internal data structure of your program. Do processing, validation, association or other tasks related to handling data.

View:

The visual webpage. What the users will see about the data it gets from the Model

Controller:

Handles requests from users. For instance handles when form submitted. It is like a manager that makes sure tasks are dedicated and result is return via the View.

Advertisements
This entry was posted in cakephp, Web and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s