MVC Framework Pattern
The MVC framework model is a model of software design in web development, his full name is (Model-view-controller), is the model-view--controller, a business logic, data control, The interface shows how to organize the code in a separate way, realizing the modular design of the code.
Model, meaning the data models, which encapsulate the processing of the data (the underlying encapsulates the operation of the database)
Controller, which is the control, takes the user input and controls the data to the model module for logical processing.
View, which is the interface, that gets the data that is logically processed from the model module for rendering.
This is our division from the perspective of the entire application, according to several modules of different functions, which can be divided into these three modules m, V, C.
mvc+ Layered Architecture
But we can often hear such a few nouns, "three-tier architecture", "layered architecture", what are these?
Three-tier architecture refers to the interface layer, the business logic layer, the data access layer, from the perspective of the entire application (slightly macroscopic) to divide, the entire program is divided into three layers, if the MVC pattern is combined with a diagram:
By using a layered architecture, we can refine the model layer to two layers: the business logic layer, the data access layer. The advantage of this is that the reusability of the code can be improved greatly, so that the system architecture, the combination of the modules tightly, the coupling degree is low. Lower-level modules open interfaces to higher-level module calls, making the modules tightly integrated.
ssh+mvc+ Layered Architecture
Finally, attach the architecture diagram after using the SSH framework:
SSH----MVC framework pattern and layered architecture