Managing psr4 autoload inside a Controller - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Managing psr4 autoload inside a Controller (/showthread.php?tid=75421) |
Managing psr4 autoload inside a Controller - x1250 - 02-04-2020 Hello, I'm trying to load psr4 data in a certain Controller, but this doesn't work: PHP Code: $psr4 = ['Something' => APPPATH.'Something']; Is there anyway I can make it work? I know I can put the new values in the Autoload config file, but I don't want to do that. Any tips? Thank you. |