![]() |
Calling a library inside a helper? - 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 inside a helper? (/showthread.php?tid=22137) |
Calling a library inside a helper? - El Forum - 08-30-2009 [eluser]Maximilian Schoening[/eluser] Hi, can I call a library from inside a helper? Like this: Code: $this->load->library('name'); Thanks, Max Calling a library inside a helper? - El Forum - 08-30-2009 [eluser]jedd[/eluser] Hi Maximilian and welcome to the CI forums. [quote author="Maximilian Schoening" date="1251687013"] can I call a library from inside a helper? Like this: Code: $this->load->library('name'); You can, but under what circumstances are you expecting to do this? The CodeIgniter core does this (typography helper calls typography library) but I'm not sure of the motivation / background there. Calling a library inside a helper? - El Forum - 08-30-2009 [eluser]Maximilian Schoening[/eluser] Hi, thanks for the reply. I already found a better solution. Since helpers are only supposed to contain a single function I went another way. Thanks, Max |