-
Notifications
You must be signed in to change notification settings - Fork 21
actionMap error #26
Comments
I think there has been a change in the dispatcher of the CakePHP framework itself. What version are you using? |
3.1.7 |
So just changing all the methods from underscored to camelCased in the components map fixes the problem for you? I couldn't find anything related to that in the 3.1 changelog and I have three apps using that version without that I've noticed trouble. |
Inside the UserToolComponent
in my boostrap
that's how it works for me, I tried to access it like request-password or request_password but the $action in
was always returning it camelBacked. When I changed it worked. |
isn't it part of the new conventions to have actions camelBacked ? |
I'm pretty sure it is because of PSR. I just can't see where I have missed that change to the CakePHP core. I've checked the release notes but haven't seen it there. With 3.0 it was working the way it is. I fear there is a difference between old and new apps. So the difference might be in the cakephp/app package, loading another dispatcher filter or something like that. https://github.com/cakephp/app/releases
|
Not sure if I understand it all, but for me the problem seemed to be the action name. As far as I understand you are using action names with underscore as the key in the config array. Are you using dashedRoute in the projects with cakephp3.0 that work ok with the underscore actions ? |
@djonatanb no need to understand it, I've fixed it in a backward compatible way. Would you please mind switching to the |
ok, gotcha, will do that |
The routing is working for me now. Thanks, I'll see if I can implement the user registration by invitation and make a pull request at some point. |
A PR for what? If you want an user registration you can re-use the token mechanism. Just trigger the email with the verification token when the admin creates the user and disable the user registration. |
I've merged to master and tagged 1.0.3 Thank you. |
I think that I cannot map actions from xxxxxx.com/users/request_password to action request_password, it goes to action requestPassword instead. With that the action map doesn't seem to work. if I change the action map it works.
Am I doing something wrong ?
The text was updated successfully, but these errors were encountered: