Zend Framework: Using Dashes in Controller Names/URLs

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?

Answers


By default

http://server/my/action-name

will map to

MyController::actionNameAction()

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


use camel casing. It works for actions:

function actionNameAction()

Need Your Help

Exception when using Contains() in LINQ Query

c# linq entity-framework

I am having a problem trying to get the following to work. I have tried it 2 different ways, both compile but both throw exceptions at runtime.