MVC is a design pattern called Model-View-Controller. It decouples data access logic from business logic.
Model:
The Model contains the
core of the application's functionality. It encapsulates the state of the application. Sometimes the only functionality it contains is state.
It knows nothing about the view or controller.
View:
The view provides the presentation of the model. It is the look and feel of the application.
The view can access the model getters, but it has no knowledge of the setters. In addition, it knows nothing about the controller. The view
should be notified when changes to the model occur.
Controller:
The controller reacts to the user input. It creates and sets the model and helps to identify which view should be part of
response.
|