Welcome Guest, Not a member yet? Register   Sign In
Controller or its method is not found: \App\Controllers\Tasks::index
#11

It is because of security enhancement since v4.2.

Since v4.2, Auto Routing is disabled by default.
So you need to define all routes in Routes.php.

If you set $routes->setAutoRoute(true), Auto Routing (Legacy) will be enabled.
But we do not recommend to use Auto Routing (Legacy), because it has too much security risks.

If you want to use Auto Routing (you don't want to add all routes in Routes.php),
we recommend to use new Auto Routing (Improved).
https://codeigniter4.github.io/CodeIgnit...to-routing
Reply


Messages In This Thread
RE: Controller or its method is not found: \App\Controllers\Tasks::index - by kenjis - 07-12-2022, 11:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB