TRY :
Backend/Users to Backend\Users
[/quote]
I also have this issue and worked out that changing / to \ works.
The line of code that doesn't play well with the "controllers in folders" is in vendor\codeigniter4\framework\system\Router\Router.php (:660)
Code:
list($controller, $method) = array_pad(explode('::', $segments[0]), 2, null);
So...
This works
Code:
$routes->get('about', 'Front/Main::about');
This doesn't
Code:
$routes->get('products/(children|men|women)', 'Front/Main::getProducts/$1');
This does
Code:
$routes->get('products/(children|men|women)', 'Front\Main::getProducts/$1');
I'm quite happy to use / but I would like to know if I may get bitten further down the road?