(Phalcon >= 5.0.0) Router: action name to be camelized like controller name #15999
borisdelev
started this conversation in
Ideas
Replies: 1 comment
|
Hi. I also think that forcing the controller to be replaced with "upper"camelCase (=PascalCase) is not balanced. I find it tempting to use complex names for actions rather than controllers, so it's acceptable to want to use symbols to separate things clearly. However, I think it's a problem that symbols are accepted by default as action strings, but not directly as method names. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi there :)
I want to discuss something about Phalcon router. Its related with action names. In documentation is mention that:
Thats great. But what about action names? Lets consider i have url like </some-controller/some-action> ? The router search action name "some-action" in controller "SomeController"... and that is not possible action name, because its function. To work like i want every time i describe in router (example):
... and now my router know- SomeController / someAction. I think is good to have (rule) default action name like ControllerName (of course can be changed via custom rule). Not to mention what view file must be loaded.
Anyway- my idea is simple- default framework rule about actionNames in controllers. What you are thinking?
PS: sorry for my English
All reactions