Hi, Routes with pass parameters such as the following:
$routes->get('/movie/test/(:any)', 'dashboard/MovieController::test/$1');
They only work if the controller (for example MovieController) is in the root:
$routes->get('/movie/test/(:any)', 'MovieController::test/$1');
In the first case (
$routes->get('/movie/test/(:any)', 'dashboard/MovieController::test/$1');) the error it gives is the following
404 - File Not Found
Controller or its method is not found: \App\Controllers\dashboard::index
It does not recognize the controller according to the error it throws; But if I remove the dasboard from the configuration like:
$routes->add('movie/test/(:any)', 'MovieController::test/$1');
its working