(created: January 21, 2015; last update: -)
In the previous two tutorials regarding MVC and CodeIgniter framework we’ve learned about the controllers and the views.
In CodeIgniter, the models respond to the controllers’ requests by returning the requested data, whether that data is taken from a database or simply operated upon. So at least from CodeIgniter’s point of view the model is a “passive” part, that waits for the controller do ask something from it.
Now would be the right time to learn something about how the models work in CodeIgniter, don’t you think? Well… I’ve learned about them a long time ago, and I’ve wrote a tutorial long before this series, so please allow me to just direct you to that tutorial: The name of the tutorial is How to retrieve data from a database, but is actually about how models work. Hope you enjoy it.
- Step 1: First contact – What is MVC and what is CodeIgniter
- Step 1.1: Again about MVC and CodeIgniter – The controllers
- Step 1.2: Again about MVC and CodeIgniter – The views
- Step 2: Set up the environments
- Step 3: Set up the database that will be used by CodeIgniter
- Step 4 – Removing the index.php from the URL and allow the use of “search-engine friendly” URLs
- Step 5 – Final settings. Finishing the configuration of your CodeIgniter
- Step 6 – Verify CodeIgniter configuration. Is everything OK?
- Step 7 – Using CodeIgniter and Composer – with a real world example
- Step 8 (optional) – Using sessions with database in CodeIgniter
- Step 9 – No more MY_Controller monopoly. How you can create more than one base controller
- Step 10 – Make your first library: a breadcrumb generator
- Step 11 – Creating and working with the famous MY_Controller
- Step 12 – Creating and using page templates in CodeIgniter
- Step 13 – Uploading multiple files (images) in CodeIgniter
- Step 14 – Crop and resize uploaded images in CodeIgniter
- Step …n…: Moving application and system folder to safety