What is MVC?

MVC stands for Model-View-Controller, a design pattern that’s very popular in the web development space.

There are three pieces to the MVC pattern:

Controller

The Controller processes and responds to user events and actions and invoke changes to the Model and the View based upon those.

Model

The Model comprise functions that interact with the database or perform complex operations (business logic objects).

View

The View provides different ways to present the data received from the model. They may are normally templates that are displayed to the user (presentation – user interface). Continue reading