Sending a given message once to the list will suffice; 10 times is overkill...
-- James Hargreaves <[email protected]> wrote (on Tuesday, 28 July 2009, 05:19 AM -0700): > > > James Hargreaves wrote: > > > > I keep seeing talk of "modules" on some ZF posts, how does this work and > > is this something I could use? > > > I managed to get this working in the end, by modularising the whole > application - ie - I created a default module, plus a module for each > language, as suggested here: > > http://framework.zend.com/manual/en/zend.controller.modular.html > > I used the addModuleDirectory method: > > $front->addModuleDirectory('/path/to/application/modules'); > > That seems to work okay. The only problem I have encountered is that I > cannot share controllers per se, since the class names for the controllers > contain the module name: > > In this paradigm, the module name serves as a prefix to the controllers it > contains. The above example contains three module controllers, > 'Blog_IndexController', 'News_IndexController', and 'News_ListController'. > Two global controllers, 'IndexController' and 'FooController' are also > defined; neither of these will be namespaced. This directory structure will > be used for examples in this chapter. > > To overcome this I created various abstract super-controllers and extend > these in each module - eg: > > include APPLICATION_PATH . > '/path/to/application/modules/.abstract/IndexController.php'; > > class News_IndexController extends IndexController { > // etc etc etc > } > > I am not convinced this is a great way to do things, but it appears to > work... > -- > View this message in context: > http://www.nabble.com/Front-Controller-Plugin-Problems-tp24642509p24698018.html > Sent from the Zend Framework mailing list archive at Nabble.com. > -- Matthew Weier O'Phinney Project Lead | [email protected] Zend Framework | http://framework.zend.com/
