简体   繁体   中英

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 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM