Autoloading helpers stored outside of application folder not working - 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: Autoloading helpers stored outside of application folder not working (/showthread.php?tid=46820) |
Autoloading helpers stored outside of application folder not working - El Forum - 11-16-2011 [eluser]tinawina[/eluser] Hi there - My CI setup looks like this: Code: System folder: I am storing all of my helper and library files in the System Folder like this: Code: Libraries When I load a helper into one of my controllers, I use this and it works fine: Code: $this->load->helper( 'custom/title_helper' ); I just tried to autoload my helpers, located in the "custom" sub-folder, by adding this info to my config/autoload.php file and nothing (except 'url') works: Code: $autoload['helper'] = array( I get an error message like this: Quote:Unable to load the requested file: helpers/character_helper.php I tried dropping "custom/" from the autoload array but that doesn't fix things. I don't want to muck around in the core Loader class and re-route all calls to helpers to this custom folder because, when all is said and done, we will have a lot of subdomains also pulling from this codeigniter installation but also using their own individual helpers and libraries. How can I get this working correctly? Appreciate any help, advice, insight! Autoloading helpers stored outside of application folder not working - El Forum - 07-10-2012 [eluser]taber[/eluser] I'm trying to do the same exact thing, I was hoping there was a solution here, damn. Autoloading helpers stored outside of application folder not working - El Forum - 07-10-2012 [eluser]Aken[/eluser] This works just fine on a fresh install of 2.1.2. Autoloading helpers stored outside of application folder not working - El Forum - 07-11-2012 [eluser]taber[/eluser] Turns out in my case it was just a permissions issue. The error message when CI couldn't load the library was a bit vague but I figured it out! |