Model-View-Controller (MVC) : Architectural Pattern Software Engineering Business Logic User Interface
Model-View-Controller (MVC) : Architectural Pattern Software Engineering Business Logic User Interface
PHP
ModelViewController (MVC)
ModelViewController (MVC)
is
an architectural
pattern used
in software engineering. Successful use of the pattern isolates business
logic from user interface considerations, resulting in an application where
it is easier to modify either the visual appearance of the application or the
underlying business rules without affecting the other. In MVC,
the model represents the information (the data) of the application;
the view corresponds to elements of the user interface such as text,
checkbox items, and so forth; and
the controller manages the communication of data and the business rules
used to manipulate the data to and from the model.
MVC Framework
MVC is a framework methodology that divides an applications
implementation into three component roles: models, views, and controllers.
Assignment # 01
PHP
MVC
Model responsibilities
Benefits
Intuitive URLs
Assignment # 01
PHP
promotes code reuse (e.g., one view might be used with different
models)
allows multiple developers to simultaneously update the interface,
logic, or input of an application without affecting other source code
helps developers focus on a single aspect of the application at a time