views:

37

answers:

2

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?

+5  A: 

By default

http://server/my/action-name

will map to

MyController::actionNameAction()

but you can also setup arbitrary routes with the Standard Router.

Gordon
Apparently I tried to get too tricky. Thank you!
manyxcxi
@manyxcxi you're welcome
Gordon
+1  A: 

use camel casing. It works for actions:

function actionNameAction()
Ilya Biryukov