Using CI instance in a library - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Using CI instance in a library (/showthread.php?tid=54073) |
Using CI instance in a library - El Forum - 08-21-2012 [eluser]DarkManX[/eluser] Hey guys, i try to store the ci instance in a library variable when i contruct the it, but i doesnt work. i tried everything but cant solve it by myself. hope you can help! Code: class My_library{ greets Using CI instance in a library - El Forum - 08-21-2012 [eluser]Rolly1971[/eluser] you construct function is wrong. it should be: function __construct() not: function construct(). notice the two underscores. Using CI instance in a library - El Forum - 08-21-2012 [eluser]DarkManX[/eluser] Ty, sometimes you just blind debugging your own code! Using CI instance in a library - El Forum - 08-21-2012 [eluser]Rolly1971[/eluser] np, glad i could help |