Introduction
Models help you work with your database easily. They represent data tables as simple PHP classes.
When you want to save new data to the database.
When you need to get data from a database table.
When you want to update or delete records in the database.
When you want to connect related data tables together.
When you want to keep your code organized and clean.