CodeIgniter Forums

Full Version: load library to other libraries
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Good day!

I have my library Curl.php. And i'm going to load this library to my different libraries.

If i have one library, this situation is:
lib1.php
PHP Code:
$this->ci =& get_instance();
$this->ci->load->library('curl'); 
But if there are several (lib1.php,lib2.php,...)?

Thank you!
@Sarog,

You could autoload library ( https://codeigniter.com/user_guide/gener...-resources )
load will also take an associated array as input.
(11-06-2018, 10:36 AM)InsiteFX Wrote: [ -> ]load will also take an associated array as input.

I believe that load->library will take an indexed array too. (Or a string of course)