Model–view–controller (MVC) is a software architectural pattern commonly used for developing user interfaces that divides an application into three interconnected parts. This is done to separate internal representations of information from the ways information is presented to, and accepted from the user. The MVC design pattern decouples these major components allowing for efficient code reuse and parallel development.
The MVC Programming Model
MVC is a framework for building web applications using a MVC (Model View Controller) design:
- The Model represents the application core (for instance a list of database records).
- The View displays the data (the database records).
- The Controller handles the input (to the database records).
The MVC model also provides full control over HTML, CSS, and JavaScript.
- The Model is the part of the application that handles the logic for the application data.
- Often model objects retrieve data (and store data) from a database.
- The View is the parts of the application that handles the display of the data.
- Most often the views are created from the model data.
- The Controller is the part of the application that handles user interaction.
- Typically controllers read data from a view, control user input, and send input data to the model.
Thanks
1 Comments
Good
ReplyDelete