What is MVC?

MVC stands for model-view-controller. It is an application architecture that allows separation of application logic from the user interface (UI).

In OpenAvanti’s implementation of the MVC architecture, both the controller and the model are PHP classes. The controller acts as a traffic cop in that it facilates communication between the view and the model.

MVC is faciliated in OpenAvanti through URL rewriting and the Dispatcher class. Read the article on Clean URLs for more information on URL rewriting, or continue reading the MVC articles on dispatching, controllers, views and models.