Welcome Guest, Not a member yet? Register   Sign In
what is the way to calling a library in object oriented style?
#4

Any autoloader can be loaded by setting $config['composer_autoload'] to a custom path in application/config/config.php. The path just has to point to a script which will register the autoloader (like Composer's vendor/autoload.php script). This is called before the Hooks class is loaded, so the only way to get an autoloader registered any earlier would be to register it in index.php or modify the CI code (or something odd like register it in a config file).
Reply


Messages In This Thread
RE: what is the way to calling a library in object oriented style? - by mwhitney - 06-02-2016, 07:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB