Modules
One of the new features to hit the Zend Framework since 0.7 is Zend_Controller_ModuleRouter and its sibling Zend_Controller_ModuleRewriteRouter. This allows for separating out sets of controlers, models and views into their own modules. The directory structure then looks like: application/ controllers/ IndexController.php ArticleController.php blog/ controllers/ IndexController.php models/ views/ news/ controllers/ IndexController.php ListController.php models/ views/ models/ views/ lib/ Zend/ webroot/ css/ img/ js/ index.php To set this up, you use this code in index.php: $frontController->setControllerDirectory(array( 'default'… continue reading.