Reputation: 6335
I have a URL I would like to look something like http://server/my/action-name
Obviously, I can't have a - in the ControllerName function and an underscore doesn't work. Is this even possible?
Upvotes: 5
Views: 2100
Reputation: 1740
use camel casing. It works for actions:
function actionNameAction()
Upvotes: 3
Reputation: 317119
By default
http://server/my/action-name
will map to
MyController::actionNameAction()
but you can also setup arbitrary routes with the Standard Router.
Upvotes: 8