[Solved] Autoloading core classes and composer |
Okies,
Seems I found the right answer here. It's a little weird because I'm still not sure what the full behind the scenes are doing but here goes. Link at the bottom for a hard to find answer. Place this code in application/config.php (I did it at the bottom) PHP Code: function __autoload($class) Then in application/config.php change PHP Code: $config['composer_autoload'] = false; to: PHP Code: $config['composer_autoload'] = 'vendor/autoload.php'; // or wherever you've installed composer Then, in composer.json add: PHP Code: "autoload": { Lastly, in your terminal run: PHP Code: > composer update Now I have access to Admin_controller when called and I have access to the Stripe (in my case) Object. Reference: https://expressionengine.com/forums/arch...odeigniter Notes: This works in CI 3.1.3 and 3.1.6 |
Messages In This Thread |
[Solved] Autoloading core classes and composer - by enlivenapp - 10-13-2017, 03:29 PM
RE: Autoloading core classes and composer - by ChicagoPhil - 10-13-2017, 07:07 PM
RE: Autoloading core classes and composer - by enlivenapp - 10-13-2017, 09:02 PM
RE: Autoloading core classes and composer - by enlivenapp - 10-13-2017, 09:50 PM
RE: [Solved] Autoloading core classes and composer - by ChicagoPhil - 10-13-2017, 10:12 PM
RE: [Solved] Autoloading core classes and composer - by enlivenapp - 10-13-2017, 10:35 PM
RE: [Solved] Autoloading core classes and composer - by Paradinight - 10-14-2017, 12:28 AM
RE: [Solved] Autoloading core classes and composer - by enlivenapp - 10-14-2017, 04:03 PM
|