开发者

Zend modules: How to fix routes for actions in modules?

I am refactoring my code for splitting in to Modules. I had before http://my.site/bug/list After moving the bugController to /application/modules/Bug

I have now: http://my.site/Bug/index/list

How to configure the routes 开发者_StackOverflow社区in order to have: http://my.site/Bug/list

thanks Arman.


You could create a "list" controller inside Bug module and move all code of old bug::list action into new Bug::list::index action. Another way is to deal with route definitions, but this way is harder.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜