![]() |
Calling a library function from 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: Calling a library function from a library? (/showthread.php?tid=9888) |
Calling a library function from a library? - El Forum - 07-11-2008 [eluser]CARP[/eluser] Hi guys I've been trying to do a "common_routines" library and succeeded. Now, I've created a new function in this library, and now I need to get a value, for example Code: $this->config->item('my_variable') The problem is that I can't refer to $this inside my custom library... How would you solve this easy (not easy for me) problem? Thanks, Calling a library function from a library? - El Forum - 07-11-2008 [eluser]Seppo[/eluser] Code: $CI =& get_instance(); Calling a library function from a library? - El Forum - 07-11-2008 [eluser]CARP[/eluser] You da man. I'm glad to help you increase your post count lol ![]() |