CodeIgniter is based on the MVC development pattern. MVC is short for Model, View, and Controller is the best way of organizing your code. The concept behind MVC is that each segment of your code has a distinct objective and purpose. Some of your code includes your application data, some of the code makes the app look good, and some of your code controls how your app works.
MVC divides the application into three main components:
Model: The model classes generally include features for collecting, inserting and updating data in your database.
Controller: In short, the controller links the models and views together, depending on the resources requested.
Take the time to consider how your app fits into the MVC framework as a developer. It will enhance your skills and your apps as well!
What’s Next! : What is the Model View Controller (MVC)?.