![]() |
Loader class add_package_path and language support - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Loader class add_package_path and language support (/showthread.php?tid=47211) |
Loader class add_package_path and language support - El Forum - 11-29-2011 [eluser]Unknown[/eluser] Hey guys I'm trying to set up some package libraries here, and I want to have custom language files associated with the library data. I read on this page -> http://ellislab.com/codeigniter/user-guide/libraries/loader.html that you can add a language folder containing your various files, like so: Quote:/application/third_party/foo_bar It's not loading the language automatically, so I tried doing a lang->load('common') (my language file is common_lang.php) right after calling add_package_path but still no luck. I looked in the loader class and I don't see anything that deals with language support. Is this an oversight? Should I add it in myself? Or am I doing it wrong? Loader.php: Code: public function add_package_path($path, $view_cascade=TRUE) Thanks for the help |