• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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, 11: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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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