We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Matched route doesn't have an associated handler on Routing Annotation

Hello

I am trying to use annotation to route my controller and I have the following code

https://gist.github.com/danielsilver2/524aba806e1792e68eac58f5445371f2

When I access the url http:/localhost/user I had the error:

Matched route doesn't have an associated handler /public/index.php(47): Phalcon\Mvc\Micro->handle()

1 {main}

Could somebody help me? :(



145.0k
Accepted
answer

Not sure - isn't this about micro app ? Maybe try to change it to full application ?

You are right, when I created an simple project the annotations worked =)