![]() |
Folder in Controllers - 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: Folder in Controllers (/showthread.php?tid=74208) |
Folder in Controllers - edica - 08-27-2019 Hi I created an Admin folder in Controllers. And inside the Admin folder the file Home.php as BaseController class. Not found this file and error 404. Should not find automatic? RE: Folder in Controllers - InsiteFX - 08-27-2019 ./app/Controllers/Admin Home Controller: PHP Code: <?php namespace App\Controllers\Admin; To access: http://yoursite/Admin/home Remember all folders are now namespaces. RE: Folder in Controllers - edica - 08-27-2019 Missed this: use App\Controllers\BaseController; In the root controllers is not required. Thanks ![]() |