The model

Basically, everything you ’ ve done in the model will become reusable data – fetching functions for the controller’ s use.

Loading a model

Your models will typically be loaded and called from within your controller functions. To load a model you will use the following function:

$this->load->model('Model_name');

Once loaded, you will access your model functions using an object with the same name as your class:

$this->Model_name->function(); 

For more, visit the original documentation page.

Post A Comment

Anti-Spam Quiz: