A Basic Explanation of the MVC Framework Using the Codeigniter PHP Framework as an Example
Posted on June 24, 2015 in CodeIgniter, MVC, PHP by Matt Jennings
In the CodeIgniter PHP MVC framework files:
- All or most files dealing with data or database(s) go into a directory called
models
located at:
/application/models
- All or most files dealing with HTML rendering go into a directory called
views
located at:
/application/views
- All or most files dealing with business logic and handling URL requests go into a directory called
controllers
located at:
/application/controllers