Welcome Guest, Not a member yet? Register   Sign In
Extending CI_Model causing $this->load->model() to create an unnecessary MY_Model object instance
#11

[eluser]danmontgomery[/eluser]
This is intended behavior... When you load a model CI checks to see if the base model class has been loaded first. Loader.php, line 189.

Code:
if ( ! class_exists('CI_Model'))
{
    load_class('Model', 'core');
}

require_once($mod_path.'models/'.$path.$model.EXT);


Messages In This Thread
Extending CI_Model causing $this->load->model() to create an unnecessary MY_Model object instance - by El Forum - 03-21-2011, 01:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB