Controller or its method is not found - 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: Controller or its method is not found (/showthread.php?tid=90462) |
Controller or its method is not found - mylastof - 03-21-2024 I’ve recently upgraded CodeIgniter from v4.3.8 to v4.4.0 and encountered an issue with routing. My controller is located at app/Controllers/Member/Dashboard.php and is set up for auto-routing. However, when I attempt to access the URL http://localhost:8080/member/dashboard, I receive the following error: Code: Controller or its method is not found: \App\ControllersMember\Dashboard::index I’ve verified with Code: php spark routes Could someone guide me on how to resolve this? RE: Controller or its method is not found - mylastof - 03-21-2024 why PHP Code: \App\ControllersMember\Dashboard::index PHP Code: \App\Controllers\Member\Dashboard::index RE: Controller or its method is not found - mylastof - 03-23-2024 bring up my post RE: Controller or its method is not found - kenjis - 03-23-2024 Show the output of `php spark routes`, and the routing settings. RE: Controller or its method is not found - mylastof - 03-23-2024 (03-23-2024, 07:21 PM)kenjis Wrote: Show the output of `php spark routes`, and the routing settings. here the result `php spark routes` `app/Config/Routing.php` and the result in browser RE: Controller or its method is not found - kenjis - 03-24-2024 Cannot reproduce. PHP Code: <?php Code: diff --git a/app/Config/Routes.php b/app/Config/Routes.php Code: $ php spark routes Navigate to http://localhost:8080/member/dashboard, I see Code: App\Controllers\Member\Dashboard::index RE: Controller or its method is not found - kenjis - 03-24-2024 Upgrade to v4.4.6. Auto Routing Legacy does not work in v4.4.0. See https://codeigniter4.github.io/CodeIgniter4/changelogs/v4.4.1.html#bugs-fixed |