Difference between revisions of "MVC Pattern"

From Suhrid.net Wiki
Jump to navigationJump to search
(Created page with "= Model = * The model holds all data, state and application logic. The model is '''oblivious''' to the view and controller, although it provides an interface to manipulate and r...")
(No difference)

Revision as of 12:07, 13 June 2012

Model

  • The model holds all data, state and application logic. The model is oblivious to the view and controller, although it provides an interface to manipulate and retrieve its state and can send notifications of state changes to observers.

View

  • Gives a representation of the model. The view usually gets the state and data it needs to display directly from the model.

Controller

  • Takes the input from the user and figures out what it means to the model.