The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

Class not found when trying to use a Class Controller

Jeremy's Avatar


28 Oct, 2015 11:08 PM

Hello there,

first off: I'm totally new to Slim.

I've been playing around a bit and stumbled upon Class Controllers as they were mentioned in the 2.4.0 release notes.
My problem is that I just can't get it too work and, to be honest, it makes me feel kinda dumb.

The example listed in the notes is
$app->get('/hello/:name', '\Greeting:sayHello');

but now matter how I twist and turn it I'm always greeted with a fatal class not found error in vendor/slim/slim/Slim/Route.php line 171.

my (preferred) folder structure would look like this

How do I make this work?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac