
What is the difference between MVC and three-tier architecture?
1. The three layers are divided based on business logic, while MVC is divided based on pages;
2. The three-tier pattern is an architecture pattern, and MVC is a design pattern. ;
3. The three-tier model can be classified as a deployment model, and MVC can be classified as a presentation model.
Three-tier architecture
Three-tier architecture (3-tier architecture) In the usual sense, the three-tier architecture divides the entire business application into: User Interface layer layer), business logic layer (Business Logic Layer), data access layer (Data access layer). The purpose of distinguishing levels is the idea of "high cohesion and low coupling". In software architecture design, the hierarchical structure is the most common and important structure. The layered structure recommended by Microsoft is generally divided into three layers, from bottom to top: data access layer, business logic layer (also called domain layer), and presentation layer.
MVC
The full name of MVC is Model View Controller, which is the abbreviation of model-view-controller, a software design Model organizes code in a way that separates business logic, data, and interface display, and gathers business logic into one component. While improving and personalizing interfaces and user interactions, there is 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.
Recommended tutorial: "PHP Tutorial"
The above is the detailed content of What is the difference between MVC and three-tier architecture?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Dreamweaver Mac version
Visual web development tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool





