Home>Article> What does mvc mean?

What does mvc mean?

烟雨青岚
烟雨青岚 Original
2020-07-15 13:58:06 24954browse

mvc is "model-view-controller", which is a pattern for designing and creating web applications. The full name of MVC is "Model View Controller". Model represents the core of the application; View represents display data; Controller represents input processing.

What does mvc mean?

The full name of MVC is Model View Controller, which is the abbreviation of model-view-controller

is a software design model that uses a method to separate business logic, data, and interface display to organize code, gather business logic into a component, and improve and personalize the interface and user interaction at the same time. , no need to rewrite business logic.

MVC was uniquely developed to map traditional input, processing and output functions into a logical graphical user interface structure.

MVC is a pattern for creating Web applications using MVC (Model View Controller model-view-controller) design:

Model (model) represents the application Core (such as a database record list).

View displays data (database records).

Controller handles input (writes database records).

The MVC pattern provides full control over HTML, CSS, and JavaScript at the same time.

Model (model) is the part of the application that handles application data logic.

Usually the model object is responsible for accessing data in the database.

View is the part of the application that handles data display.

Usually views are created based on model data.

Controller is the part of the application that handles user interaction.

Usually the controller is responsible for reading data from the view, controlling user input, and sending data to the model.

MVC layering helps manage complex applications because you can focus exclusively on one aspect at a time. For example, you can focus on view design without relying on business logic. It also makes application testing easier.

MVC layering also simplifies group development. Different developers can develop views, controller logic, and business logic simultaneously.

For more related knowledge, please visitPHP Chinese website! !

The above is the detailed content of What does mvc mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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