Autoload custom libraries?


I have a quick question. Can you autoload your own libraries in the "../system/application/libraries/" or should I make a seperate folder in "../system/libraries/" and do it that way?


Have you tried it?

Welcome to forums. You will want to put any library that is not part of CI download into /application/libraries. The /system/libraries folder is for core files only. You can still (auto)load the libraries the same way either way.

//or in /application/config/autoload.php
$autoload['libraries'] = array('your_library');

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.