Home >Common Problem >What is mvc pattern?
What is mvc mode?
MVC’s full name is model-view-controller (model-view-controller). MVC is a model for developing applications. This model already has a good framework architecture and is very easy to maintain.
Simply put, MVC is a design pattern that enforces separation of input, processing, and output of an application. Applications using MVC are divided into three core components: model, view, and controller. They each handle their own tasks.
Applications developed using MVC generally include the following pieces: ·Controller: Control The handler class handles the client's request to the Web application, obtains the data, and specifies the view returned to the client to display the processing results.
· Model (Model): The model class represents the data of the application. These data usually have a data validation logic , which is used to make the data must conform to the business logic.
· View (View): The view class is a template file used in a Web application to generate and display the server-side response to the client request in HTML format.
For more programming-related content, please pay attention to the Programming Introduction column on the php Chinese website!
The above is the detailed content of What is mvc pattern?. For more information, please follow other related articles on the PHP Chinese website!