PART 4The Model-View-Controller (MVC) Pattern
Chapter 14MVC Architecture
Model-View-Controller (MVC) is a design pattern that simplifies application development and maintenance. It achieves this by separating the application into three logical components:
Model: The model layer is responsible for the business logic of an application. It will encapsulate access to data stores and will provide a reusable class library. Typically, within the model, you will find facilities for database abstraction, e-mail delivery, validation, and authentication.
View: The view layer is typically what would be considered web design, or templating. It controls the look and feel of data and provides facilities to collect data from the user. Technologies exclusively ...
Get Pro PHP: Patterns, Frameworks, Testing and More now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.