Loading core controller as well as composer libraries |
There are other ways to make this work. HERE is a page that discusses all the variations.
I am not a fan of putting more than one class in a file but it does work. I prefer using the "hooks" method as described on the linked page. You can put your autoload into config.php and fix the conflict problem with simple changes. PHP Code: function my_autoloader($class) By using spl_autoload_register() you allow multiple autoload functions to live in harmony - including the composer autoloader. |
Messages In This Thread |
Loading core controller as well as composer libraries - by aderowbotham - 06-14-2018, 03:55 AM
RE: Loading core controller as well as composer libraries - by InsiteFX - 06-14-2018, 09:16 AM
RE: Loading core controller as well as composer libraries - by aderowbotham - 06-14-2018, 09:29 AM
RE: Loading core controller as well as composer libraries - by dave friend - 06-14-2018, 12:16 PM
RE: Loading core controller as well as composer libraries - by aderowbotham - 06-15-2018, 04:35 AM
|