Model View Controller

Chapter: Model View Controller

The "pure" version

In its simplest and most basic form a project is divided into three components:

The Model has no knowledge of the View, and the View knows nothing of the Model. There is absolutely no communication between the Model and the View.

The Controller initiates communication with the Model. It may be sending information to, or getting information from, the Model. Similarly, the Controller initiates communication with the View. Typically the Controller sends items for the View to display.

The same model can coexist with many different views and many different controllers. The model just does not care. The same controller can have several views.

Controllers are aware of their model and their view. Apart from that, the components are unaware of each other.


rhyspj@gwu.edu