-
-
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
Dispatcher getActiveMethod breaks method name letter case #2313
Comments
|
Case can't control the user to enter the url, so only unified converted to lowercase. |
This naming restrictions makes difficult to develop more complex applications. One word method naming and |
Also, |
Understand your meaning this time, I check. |
Try using Phalcon\Mvc\Dispatcher::getActiveMethod instead of getActionName |
There is only one difference between this methods. Problem not in
In the last example we get unexpected method name. In other words, now we can't get current active method with |
Fix #2313 about Phalcon\Annotations\Annotation
I checked |
This bug is back in 2.0.. |
Bug is back in 3.0.1. Could we fix it please ? |
@VincentMolinie Could you please open a new issue with minimal code to reproduce |
If method name have one word in prefix like
indexAction
oraddAction
everything works fine. But if method have a more complex name likeaddPostAction
orshowMeSomethingAction
$dispatcher->getActiveMethod()
returns unexpected results:addpostAction
andshowmesomethindAction
. Method name beforeAction
keyword unexpectedly lowercased.It makes impossible to use this methods in annotations reader.
This code not working, because $dispatcher->getActiveMethod() returns wrong method name (partially lowercased).
OS: Mac OS X 10.9.2
PHP version: 5.5.11
Phalcon version: 1.3.1
The text was updated successfully, but these errors were encountered: