Matthew Weier O'Phinney wrote: > To follow the conventional modular format, you should have the following > directory structure: > > APP_DIR/ > default/ > controllers/ > admin/ > controllers/ > (all controllers in this module should be prefixed with > 'Admin_')
Just want to say that I followed this, and now have things working again. One note, though about the last bit above: "all controllers in this module should be prefixed..." is referring to the class names, not the file names. That got me scratching my head for a while. I had "admin/controller/Admin_IndexController.php" and should have used "admin/controller/IndexController.php" containing: class Admin_IndexController extends... So, this bit is the same as the convention used around 0.6+, except for the switch from ./application/controllers/module/... to ./application/module/controllers/... I see the reasoning here. Pop in a nice self contained, say, blog module and add a simple addControllerDirectory() line to your bootstrap, and you're all set with a new ZF blog. Great. What's a bit strange is that in the manual, the example layout is given as: ( http://framework.zend.com/manual/en/zend.controller.modular.html ) docroot/ index.php application/ default/ controllers/ IndexController.php FooController.php blog/ controllers/ IndexController.php models/ views/ news/ controllers/ IndexController.php ListController.php models/ views/ Where are the models and views for the default module? Do they go directly beneath application/ or are they just missing? Thanks, -- Drew
