This document discusses the Model-View-Controller (MVC) software architecture pattern. It defines real MVC as separating an application into three interconnected parts: the model, the view, and the controller. The model manages the application's data logic and business rules. The view is responsible for displaying data. The controller handles user input and interaction by collecting information from the user to update the model and pass data between the model and view. The document provides examples of implementing MVC in PHP and notes there is a difference between a real and fake MVC implementation.
4. Fake MVC
MVC is a software architecture that separates business logic
from the rest of the user interface. It does this by separating
the application into three parts: the model, the view, and the
controller.
Source : Dave Jarvis, http://programmers.stackexchange.com/questions
5. Fake MVC - Components & collaboration
User
Controller
ViewModel
HTTP
HTML
Render
Ask
Datas
6. Real MVC - definition
Model–view–controller (MVC) is a software architectural
pattern for implementing user interfaces. It divides a given
software application into three interconnected parts, so as to
separate internal representations of information from the ways
that information is presented to or accepted from the user.
Source : http://en.wikipedia.org
7. Real MVC - Components & collaboration
User
ControllerView
Model
UsesSees
Updates Manipulates