php - In Zend/MVC how do I set up the controllers and views for a sub-application or submodule? -


i have zend applications this

/app/ /app/registration /app/games 

i need create url games

mydomain.com/games/game-1 

how set controllers , views in directory structure when module or sub application?

/app/games /app/games/configs /app/games/controllers /app/games/controllers/game1controller.php /app/games/views ... 

one way use existing module conventions:

application/   controllers/   views/   configs/   modules/     registration/       controllers/       views/       configs/ 

the thing zf set handle extent convention... if way going have modify things more.

in layout top level controllers, views, etc.. default module, while other modules under modules directory.

i make each game own module. if have common code used in games make classes can extend , put in library.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -