Wednesday, 23 November 2011

MVC (Model View Controller)

Model–view–controller (MVC) is a software architecture, currently considered an architectural pattern used in software engineering. The pattern isolates "domain logic" (the application logic for the user) from the user interface (input and presentation), permitting independent development, testing and maintenance of each.



The model manages the behaviour and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).
The view renders the model into a form suitable for interaction, typically a user interface element. Multiple views can exist for a single model for different purposes.
The controller receives user input and initiates a response by making calls on model objects. A controller accepts input from the user and instructs the model and a view port to perform actions based on that input.

MVC was first described in 1979 by Trygve Reenskaug

In short :-1-Model directly interact with database and manage it.
               2-Controller contain all the logic .
               3-View ,its a user interface , through which user interact .

No comments:

Post a Comment