MVC Architecture : MVC Stand for Model View Controller
MVC Architecture Model View Controller(MVC) is an architectural pattern that separates into three main logical components: the model,the View, and the controller.Most of the PHP Framework like Laravel, Codeigniter, OpenCart and Many More Based on Model View Controller
Let's Understand MVC Architecture
Model: Model Represent the Shape of data and business logic. It Maintains the data of the applications. Model Objects retrieve and store model state in a database. The Model Components corresponds to all the data related logic that the user works with. This can represent either the data that is being transferred between the View and Controller components. So we can say that Model is a data and Business Logic Layer.
View: It is also called presentation Layer. View is responsible to display the data provided by the model in specific format. So we can say that View is a User Interface .
Controller:Controller act as a interface between Model and View to process all the business logic and upcoming requests. Manipulates the data using the model Component and interact with the Views to provide final output. So We can say that Controller is a Request Handler.
Point to be Remember:
- MVC stand for Model, View and Controller
- Model is responsible for maintain application data and business Logic
- View is a User Interface, which display the data
- Controller handles the user request and provide appropriate View with Model Data.