Can't autoload file in Packages - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: Can't autoload file in Packages (/showthread.php?tid=62634) |
Can't autoload file in Packages - HTLove - 08-07-2015 Hi. This is the my config application/config/autoload.php PHP Code: $autoload['packages'] = array(APPPATH.'third_party/my_package'); in application/third_party/core/config/autoload.php i config: PHP Code: require_once(APPPATH.'third_party/my_package/libraries/my_lib.php'); My file exitst but can't loaded file my_lib.php pls help me. (sr my eng) RE: Can't autoload file in Packages - HTLove - 09-05-2015 Help me RE: Can't autoload file in Packages - InsiteFX - 09-05-2015 Just put the library name in the autoload you do not need the full path to it. PHP Code: $autoload['packages'] = array('my_package'); |