Replies: 3 comments
-
I also encountered the same problem. https://github.com/phalcon/cphalcon/blob/master/phalcon/Mvc/Micro.zep#L252 When using mvc routing mode, there is no [handler] parameter in the code. |
Beta Was this translation helpful? Give feedback.
-
I had the same issue, but I found some old lib written to support annotations and reverse engineered the hell out of it. Short version is the way micro mounts routes is totally different than the router object. Even if you scale a medium application on Micro it's very different than a full application. If you are interested in using annotations, I have a production release version ready that allows annotation routes with Micro. It supports caching too. |
Beta Was this translation helpful? Give feedback.
-
Hello, I’ve encountered this issue as well. When I checked the code in the Phalcon GitHub repository, I noticed that the Micro class clears the routes before returning the router service through the getRouter method. I couldn’t understand why this was done. Secondly, in the handle method of the Micro class, it checks if the route exists within this->handlers. When you add routes to the Micro class, they are stored in the this->handlers array. The documentation mentions that we should create and include the Router class, so I wanted to share this information. Best regards and good luck with your work! |
Beta Was this translation helpful? Give feedback.
-
Hello
http://site/api -> Matched route doesn't have an associated handler
Beta Was this translation helpful? Give feedback.
All reactions