The MVC model (Model-view-controller) is a software architecture pattern in software engineering, which divides the software system into three basic parts: Model, View and Controller.
Model (M)-Write the functions that the program should have, and is responsible for the mapping (ORM) between business objects and the database.
View (V)-Graphical interface, responsible for the interaction with the user (page).
Controller (C)-Responsible for forwarding requests and processing requests.
Simple diagram :
user operation flow chart :