Welcome Guest, Not a member yet? Register   Sign In
Autoload custom libraries?
#1

[eluser]arbme666[/eluser]
Hi,

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?

Thanks
#2

[eluser]danmontgomery[/eluser]
Have you tried it?
#3

[eluser]pickupman[/eluser]
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.
Code:
$this->load->library('your_library');

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




Theme © iAndrew 2016 - Forum software by © MyBB