我有一个 URL,我希望它看起来像 http://server/my/action-name
显然,我不能在 ControllerName 函数中使用 - 并且下划线不起作用。这可能吗?
最佳答案
默认
http://server/my/action-name
将映射到
MyController::actionNameAction()
关于php - Zend 框架 : Using Dashes in Controller Names/URLs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3426036/