# Slim3 & class routing

**URL:** https://discourse.slimframework.com/t/slim3-class-routing/1496
**Category:** Questions
**Created:** [May 18, 2017, 2:57am UTC](https://discourse.slimframework.com/t/slim3-class-routing/1496 "2017-05-18T02:57:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![russellharrower](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@russellharrower](https://discourse.slimframework.com/u/russellharrower)
#### Post date: [May 18, 2017, 2:57am UTC](https://discourse.slimframework.com/t/slim3-class-routing/1496/1 "2017-05-18T02:57:54Z")

</div>

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.

**Works**  
$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}`

---

<div class="post-metadata">

### Author: ![Keust](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@Keust](https://discourse.slimframework.com/u/Keust)
#### Post date: [May 18, 2017, 6:04am UTC](https://discourse.slimframework.com/t/slim3-class-routing/1496/2 "2017-05-18T06:04:50Z")

</div>

Hi Russel,

What happens if you try the following:

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

```

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