开发者

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

开发者 https://www.devze.com 2023-04-02 20:49 出处:网络
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 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

精彩评论

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

关注公众号