> For the complete documentation index, see [llms.txt](https://100pingissues.gitbook.io/oswe/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://100pingissues.gitbook.io/oswe/programming-languages/php/php-mvc-framework.md).

# PHP MVC Framework

## MVC Design Pattern

### Model - perform data validations, process data and store it

The model is known for business logic and the application data.  The data can come from;

* flat file
* database
* XML document
* Other valid data sources.

### Controller - this is the part deals with the users’ requests for resources&#x20;

The controller links the models and views together depending on the requested resources. The controller will load the requested data from the model to retrieve the it then output the results in the list view.

### Views - this part deals with presenting the data to the user. (HTML pages)
