Welcome Guest, Not a member yet? Register   Sign In
load library to other libraries
#1

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!
Reply
#2

@Sarog,

You could autoload library ( https://codeigniter.com/user_guide/gener...-resources )
Reply
#3

load will also take an associated array as input.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#4

(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)
Reply




Theme © iAndrew 2016 - Forum software by © MyBB