![]() |
Issue loading custom library from custom 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: Issue loading custom library from custom helper (/showthread.php?tid=34688) |
Issue loading custom library from custom helper - El Forum - 10-06-2010 [eluser]dstegelman[/eluser] Hey guys, I tried a Google search and looked around a bit in Pyrocms before I posted this, but I have had this problem all night and I thought it might be best to seek some help. I am having an issue loading a custom library from the helper that I have created. I am using Wiredesignz modular seperation. Inside /application/helpers/controls_helper.php I have Code: function projectDropdownList(){ and inside /application/libraries/Controls.php I have Code: class Controls { When I try to use the controls helper function I get this error back from MY_Loader.php Code: ErrorException [ Notice ]: Undefined property: CI::$controls I can't seem to reach the CI super object or something. Issue loading custom library from custom helper - El Forum - 10-07-2010 [eluser]nuwanda[/eluser] Are we on related topic here? Link Should you be calling your method statically? Issue loading custom library from custom helper - El Forum - 10-07-2010 [eluser]dstegelman[/eluser] Thats a good point, but not really the problem. The error I'm getting seems to be caused by Modular Seperation, but I am just not sure. Issue loading custom library from custom helper - El Forum - 10-07-2010 [eluser]dstegelman[/eluser] RESOLVED: I removed the MY_Controller.php from core and I can now load the correct libraries and models into the helper. |