-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0.6 - Bug on getActiveMethod in dispatcher #10755
Comments
A bug in version 1.3 are discussed here #2313 |
Views are looked up in lowercase, returning helloMyWorldAction makes it look for a view called helloMyWorld.phtml instead of hellomyworld.phtml |
What decision should be to get existing Annotations on active method without extra code? Before update to 2.0, this
After update to 2.0.6, It took me to write a function:
|
I think the annotations component must work with case insensitive method names and it does not matter in PHP |
If you send to $annotations->getMethod lowercase method parameter, you don't get any annotations. If you send formatted string, you get all annotations. |
Yeah, that's what I'm saying, the annotations component must return the annotations for the method without having into account the case sensitiveness. |
It would be great, if it will work as you said :) But now getMethod is case-sensitive and required the original name of active method. |
I've added case insensitiveness to getMethod in the 2.0.x branch |
Hello!
I having actions in controllers like "helloMyWorldAction", and using annotations to route. If i try to $dispatcher->getActiveMethod() i get string like "hellomyworldAction"
Lost the original formatting of the text, it converted to lowercase.
This bug was corrected in Phalcon 1.3 *, but again returned to the Phalcon 2.0
The text was updated successfully, but these errors were encountered: