johnj
(John)
1
this is a feature of zend framework that i’d really like to see in yii.
the ability for this url
/this-is-a-controller/my-custom-action/
to map directly to
ThisIsAControllerController and the action function would be actionMyCustomAction
also if we could choose the separator as well. most likely a hyphen or a plus.
its my only gripe with yii otherwise its awesome.
mikl
(Mike)
2
That’s exactly what you can do with parameterized rules. See the reply to your other post.
johnj
(John)
3
thanks mike, but i wanted to do this without a route.
i have many many controllers that follow the camel case naming scheme. it still means i need 30 rules for 30 different controllers.
pestaa
(Pestaa)
4
johnj, it is actually not the case.
By defining
'<controller>/<action>'=>'<controller>/<action>'
you can have all 30 action mapped.
johnj
(John)
5
thanks for looking into this pestaa.
Mike clarifies this in my other post under "general discussion"