When i want to access a function of a user defined model in codeigniter inside a custom user defined library it throughs
Call to a member function Set_where() on a non-object
Although i load the model by using this inside that library
$CI =& get_instance();
$CI->load->model('home_model');
And im using this code to access the function inside home_model class
$CI->home_model->Set_where("film_feature='Y'");
So now it throughs me the above error.
So could someone plz help me out to solve this error.