Welcome Guest, Not a member yet? Register   Sign In
Suggestion : SPL Autoload config
#2

http://www.codeigniter.com/user_guide/ge...oader.html

If you set $config['composer_autoload'] to a path to a file which registers your autoloader, CI3 will call the file in /system/core/CodeIgniter.php. Alternatively, if you just set the value to TRUE, it will attempt to find the file in APPPATH . 'vendor/autoload.php'.

While the intent of the configuration value is to register composer as an autoloader, you could configure any autoloader the same way, you just need a simple script that registers your autoloader.

As for disabling CI_Loader, that would just disable all of CI's system classes, since they don't follow the conventions required by most autoloaders.
Reply


Messages In This Thread
Suggestion : SPL Autoload config - by djha - 09-07-2015, 04:09 AM
RE: Suggestion : SPL Autoload config - by mwhitney - 09-08-2015, 12:16 PM
RE: Suggestion : SPL Autoload config - by djha - 09-08-2015, 03:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB