• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Autoload idea

#1
Hi.

I have this kind of code in many places ....

$this->load->library('some_library');
$this->some_library->some_method('some_string');


It would by good to make some sort of "magic" autoload and remove need of the first line with loading library.

$this->some_library->some_method('some_string'); //autoloader could be able to try to find "some library" if it exists on default paths.


What do you think about it?

Thanks for reply.
Reply


Messages In This Thread
Autoload idea - by Sezu - 03-22-2016, 12:05 AM
RE: Autoload idea - by PaulD - 03-22-2016, 05:25 AM
RE: Autoload idea - by ivantcholakov - 03-22-2016, 05:37 AM
RE: Autoload idea - by Narf - 03-22-2016, 05:39 AM
RE: Autoload idea - by Sezu - 03-22-2016, 07:30 AM
RE: Autoload idea - by PaulD - 03-22-2016, 07:54 AM
RE: Autoload idea - by Narf - 03-22-2016, 08:34 AM
RE: Autoload idea - by Sezu - 03-22-2016, 08:11 AM
RE: Autoload idea - by PaulD - 03-22-2016, 08:46 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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