CONVENTIONAL MODULAR DIRECTORY STRUCTURE

blahboatsInternet and Web Development

Dec 13, 2013 (3 years and 5 months ago)

99 views

CONVENTIONAL MODULAR DIRECTORY STRUCTURE


The optional folders are marked (of course modules are all optional anyway):


a
pplication/




modules/





default/ (optional)





controllers/





IndexController.php






models/ (optional)




views/






scripts/








index/






index.phtml





helpers/ (optional)





filters/ (optional)






( THE NEXT MODULES ARE ALL

OPTIONAL BUT CAN BE ADDED AD
INFINITUM )









modulename1/





controllers/





ControllernameController.php





Controllername2Controller.php





.........




models/ (optional)




views/







scripts/







Controllername/






actionname.phtml







actionname2.phtml







......








Controllername2/






actionname.phtml







actionname2.phtml







......









helpers/ (optional)





filters/ (optional)




modulename2/ (optional)





controllers/





ControllernameController.php





Controllername2Controller.php





.........





models/ (optional)




views/ (optional)






scripts/







Controllername/






actionname.phtml







actionname2.phtml







......







Controllername2/






actionname.phtml







actionname2.phtml







......





helpers/(optional)






filters/(optional)




modulename3/ (optional)





controllers/





Controllername
Controller.php





Controllername2Controller.php





.........




models/ (optional)




views/






scripts/







Controllername/






actionname.phtml







actionname2.phtml







actionname3.phtml







........







Controllername2/






actionname.phtml







actionname2.phtml







......





helpers/ (optional)






filters/ (optional)

html/



.htaccess


index.php


To make all this work all one needs to do is add the following line to the bootstrap(index.php):


$front
-
>addModuleDirectory('application/modules');