Controller or its method is not found |
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?
why
PHP Code: \App\ControllersMember\Dashboard::index PHP Code: \App\Controllers\Member\Dashboard::index
Show the output of `php spark routes`, and the routing settings.
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
Upgrade to v4.4.6.
Auto Routing Legacy does not work in v4.4.0. See https://codeigniter4.github.io/CodeIgnit...bugs-fixed |
Welcome Guest, Not a member yet? Register Sign In |