Welcome Guest, Not a member yet? Register   Sign In
Extending Main model and not the CI Model
#2

Yes it is fine to extend your custom model, but you shouldn't load the model using:

PHP Code:
require 'Main_model.php' 

It's best to use CI's built-in loader, e.g.

PHP Code:
$this->load->model('main_model'); 

in your constructor.
Reply


Messages In This Thread
RE: Extending Main model and not the CI Model - by JayAdra - 10-11-2015, 10:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB