Welcome Guest, Not a member yet? Register   Sign In
library manipulation - using two objects
#1

[eluser]Spir[/eluser]
Hello I need to have to object of one library in a method. How can I do that?

Do I have to do that :
Code:
$this->load->library('myLib','myLib_1');
$this->myLib_1->some_method();

$this->load->library('myLib','myLib_2');
$this->myLib_2->some_method();

I think playing with $CI =& get_instance(); would result the same.
Any idea?


Messages In This Thread
library manipulation - using two objects - by El Forum - 01-15-2009, 05:02 AM
library manipulation - using two objects - by El Forum - 01-15-2009, 05:06 AM
library manipulation - using two objects - by El Forum - 01-15-2009, 05:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB