Slim3 & class routing


I am using the following code to send the requested URL to a class which then in theory should be able to access all of the args, however I am having issues sending the args over in the normal url layout.

$app->get(’/’, \HomeController::class . ‘:home’);
$app->get(’/contact’, \HomeController::class . ‘:contact’);

Bring up this page cant be found

$app->get('/hello/{name}',\APIController::class . 'hello');

I have also tried it without /{name}


Hi Russel,

What happens if you try the following:

$app->get('/hello/{name}', 'ApiController:hello');

I can imagine that there is some more details in/with the error?