Skip to content

MVC

MVC ( Model-View-Controller ) is an architectural pattern which has existed for a long time in software engineering and is in use by majority of programming languages.

Model here is about the data and actual business logic. It takes care about the data of the applications. Model-related objects operate with model state in a database.

View is a representative part, a user interface. View is in charge of showing the data to the user using the model and enables users to alter the data.

Controller takes care about the request from the user. So, user interacts with View, which is about corresponding URL request, this request will be handled by a controller. Appropriate view with the model data as a response is rendered by the controller.