Hi all, I'm new to ZF and I'm not sure which would be the optimal layout and routing scheme for my application.
I would like to have these modules: - default - accounts - news - library - forum - service each module having some actions (example): - default (index, login, logout, sitemap, about, contact) - accounts (index, detail, add, edit, delete) - news (index, detail, add, edit, delete) - library (index, detail, add, edit, delete) - forum (index, detail, add, edit, delete) - service (index, stats, backup) Now, I'm not sure how to set this up in ZF. The default route is module/controller/action. If I create single index controller under each module, then I'll have all paths like this: site.com/index/about site.com/index/sitemap site.com/index/contact site.com/news/index/detail site.com/news/index/add site.com/library/index/edit site.com/library/index/detail ... i.e. there is 'index' (controller name) in all the paths. There is only one controller (index) in most of my modules. I would rather have the paths in the following form: site.com/news/detail site.com/news/add site.com/library/edit site.com/library/detail Am I missing some point here? Am I using the modules in a wrong way? (I like the idea of modules) I think my module layout is quite typical. Should I create extra controller for every single action? I would like to hear from you, what layout and routing do you use? Any help highly appreciated, Naioshi
