How to load a string or array of library classes in global.php variables?
Hi! is there any sample code on how to load a libraries in global variables in global.php and specifying it to a page.?
Thanks. I'm a newbie in FUELcms and I'd like to master this one. It seems the user guide is incomplete enough to new begginers like me
Comments
$CI =& get_instance(); $CI->load->library('my_lib');
Alternatively, you could add it to the fuel/application/config/autoload.php config file if you want it to be truly loaded globally.
http://www.getfuelcms.com/user_guide/general/opt-in-controllers
Thanks for the immediate response!