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
Post a Comment