Model View Controller (MVC) Framework

Model, View, Controller Relationship Diagram
Model, View, Controller Diagram

Model, View, Controller (MVC) is a standard methodology for separating logical components into three parts. All project developers can then use this common structure. It provides a common distribution of the code we use, and allows for more code re-usability and less code duplication. Each part holds a function.

Contents of an MVC

Model: The model contains the logic that access data and is where most computer logic is found.

View: The view handles the elements used to display the data to the end user.

Controller: The controller is what manages the user input and passes it to the model. After which, the model returns the data sets and passes it forward to the view for display.

See More On

Common Model View Controller Frameworks

Every computer language has commonly used additions called “frameworks.” These include additional functionality and libraries. Here are some of the more common ones we have articles on, that also use the MVC.