Welcome Guest, Not a member yet? Register   Sign In
Is it possible to UNLOAD a model?
#1

[eluser]dcheslow[/eluser]
I am using:
Code:
$this->load->model('class_1','my_model',TRUE);
and access the model:
Code:
$this->my_model->some_function();
I later (in the same page load) use:
Code:
$this->load->model('class_2','my_model',TRUE);
When I execute:
Code:
$this->my_model->some_function();
I get the class_1 function, not the class_2 function, as I expected. If I change the name assigned to the model in the second load statement, then all is well... but that's inconvenient in my case because this code is being generated dynamically.
I tried unset($this->my_model) without success and I've searched the guide for anything about unloading... nothing there either.

Any suggestions?

Thanks,

=dave=


Messages In This Thread
Is it possible to UNLOAD a model? - by El Forum - 11-16-2007, 10:38 AM
Is it possible to UNLOAD a model? - by El Forum - 11-16-2007, 11:51 AM
Is it possible to UNLOAD a model? - by El Forum - 11-16-2007, 12:44 PM
Is it possible to UNLOAD a model? - by El Forum - 11-17-2007, 03:59 AM
Is it possible to UNLOAD a model? - by El Forum - 04-01-2009, 10:01 AM
Is it possible to UNLOAD a model? - by El Forum - 10-17-2009, 11:02 PM
Is it possible to UNLOAD a model? - by El Forum - 10-18-2009, 07:17 AM
Is it possible to UNLOAD a model? - by El Forum - 02-17-2012, 06:42 PM
Is it possible to UNLOAD a model? - by El Forum - 02-18-2012, 02:53 AM
Is it possible to UNLOAD a model? - by El Forum - 02-20-2012, 12:12 PM
Is it possible to UNLOAD a model? - by El Forum - 02-20-2012, 01:00 PM
Is it possible to UNLOAD a model? - by El Forum - 07-12-2013, 07:08 PM
Is it possible to UNLOAD a model? - by El Forum - 07-31-2013, 09:21 PM
Is it possible to UNLOAD a model? - by El Forum - 07-31-2013, 09:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB