Model view controller

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
The Model View Controller (MVC) is one of the oldest architectural patterns. It is still widely used in web and application programming.
+
The '''Model View Controller (MVC)''' is one of the oldest architectural patterns. It is still widely used in web and application programming.
  
 
The general premise is to separate application into three distinct parts:
 
The general premise is to separate application into three distinct parts:

Revision as of 07:34, 23 July 2009

The Model View Controller (MVC) is one of the oldest architectural patterns. It is still widely used in web and application programming.

The general premise is to separate application into three distinct parts:

  • Model: The underlying model of the data, this is often provided by a back-end database.
  • View: The interface with the web client/browser or the application's GUI.
  • Controller: The logic (sometimes called 'business logic') that interfaces between the view and the model.

The MVC is often considered circular in form, with the model providing data for the view, which uses the controller to update the model. However, in some situations the controller is thought to sit between the view and the model.

See also

Personal tools