Welcome Guest, Not a member yet? Register   Sign In
Model singleton
#5

[eluser]Dam1an[/eluser]
You can always alias a model using the second parameter
Code:
$this->load->model('pilot', 'pilot1');
$this->pilot1->setname("Pilot 1");

$this->load->model('pilot', 'pilot2');
$this->pilot2->setname("Pilot 2");


Messages In This Thread
Model singleton - by El Forum - 05-25-2009, 08:59 AM
Model singleton - by El Forum - 05-25-2009, 11:16 AM
Model singleton - by El Forum - 05-25-2009, 11:18 AM
Model singleton - by El Forum - 05-25-2009, 02:54 PM
Model singleton - by El Forum - 05-25-2009, 03:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB