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

Hello I need to have to object of one library in a method. How can I do that?

Do I have to do that :


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

[eluser]Phil Sturgeon[/eluser]
The method you have posted above would not work, as it would simply send a string containing 'myLib_1' as an argument to your library's constructor, then line 2 would produce an error as $this->myLib_1 does not exist.

One way that will work is the hybrid of CI and native PHP methods.


$myLib_2 = new myLib()

Ok thanks I tought param 2 was like for Models.
Ok many thanks for your help.

Theme © iAndrew 2016 - Forum software by © MyBB