Home > Common Problem > body text

What is mvc pattern?

藏色散人
Release: 2020-03-04 13:33:03
Original
9065 people have browsed it

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!

Related labels:
mvc
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template