[eluser]ColonelChlorine[/eluser]
Hey Phil, as an idea ... why not provide a boolean parameter to the
load method which declares whether or not to instantiate the class?
This way the file will be required (once), but the class not instantiated ... thereby getting rid of some of the singleton problems.
For example I would make a model called, "Company" which doesn't extend CI_Model, but has it's own internal access to CI via =& get_instance(). That way I could do something like:
Code:
$this->load->model('Company', false);
$company1 = new Company();
$company2 = new Company();
$company1->add_partner($company2);
$company1->save();
Does that make sense?