What is MVC ?
MVC (Model-View-Controller) is a software architectural pattern used in web development and application design to separate the internal representations of information from the way it is presented to and accepted from the user.
MVC Diagram
-
Controller :
-
Acts as an intermediary between the Model and the View.
-
It processes user inputs received from the View, interacts with the Model to update data, and then updates the View with the new data.
-
-
View :
-
Displays the data to the user and represents the user interface.
-
Whenever the user interacts with the application, the View sends these inputs to the Controller.
-
-
Model :
-
Connect to the Database Entity
-