Browsing all articles tagged with MVC Pattern and PHP
Jul
17
Comments Off on The MVC Pattern and PHP

The MVC Pattern and PHP

4.3

The Model-View-Control (MVC) pattern, originally formulated in the late 1970s, is a software architecture pattern built on the basis of keeping the presentation of data separate from the methods that interact with the data. In theory, a well-developed MVC system should allow a front-end developer and a back-end developer to work on the same system without interfering, sharing, or editing files either party is working on.

Even though MVC was originally designed for personal computing, it has been adapted and is widely used by web developers due to its emphasis on separation of concerns, and reusable code. The pattern encourages the development of modular systems, allowing developers to quickly update, add, or even remove functionality.

Understanding MVC

The pattern’s title is a collation of its three core parts: Model, View, and Controller. A visual representation of a complete and correct MVC pattern looks like the following diagram:

 

MVC-Process

The image shows the single flow layout of data, how it’s passed between each component, and finally how the relationship between each component works.

read more