Hi, keith Pope schrieb: >> resources.db.adapter = "PDO_MYSQL" >> guestbook.resources.db.adapter = "PDO_SQLITE"
> You would probably need a FC plugin or action helper for this,
> Zend_App works before the dispatching process therefore it does not
> know what module is being requested, so if you are using zend db table
> the default adapter is set in the main db resource etc.
> Also I dont think the db resource will be called twice in this setup,
> you will need to have a module specific resource that you create
> yourself.
Okay, but aren't the module resources intended to be module-specific
extensions? At least I think that they should behave like that. If there
isn't any drawback to this kind of usage we could even think of
implementing this kind of "overriding" resources ... what do you think?
That put aside, I thought to simply extend the module bootstrapper in
order to take care of module specific setups.
I currently already have a ModuleConfig resource which reads module
specific config files and uses the data, but unfortunately - as far as I
think I understood the new bootstrapping process - all modules will be
read during the bootstrap process itself, which will lead to a "the
latest config wins" scenario.
This leads me to the conclusion that it is okay to read the module
configuration from the config files during bootstrapping, but to ignore
the config resources as long as the module isn't called.
There comes your idea of a service layer into place, if I understood
that correctly. So I guess I should write a fc plugin or action helper
that will overwrite the application wide settings with the module
specific settings.
So if all this should sound reasonable:
- Shall I choose a fc plugin or rather an action helper (and why ofc)?
- Should I keep the application wide settings or should I overwrite the
duplicate resources with the module settings?
Thx in advance :)
--
Cheers, \\|//
Vince (o o)
----------------------------ooO-(_)-Ooo-------------------------
''' (o)_(o) [ ][0][ ]
ô¿ô (=°o°=) World Domination by Copy and Paste [ ][ ][0]
- (")_(") [0][0][0]
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
Ooo.
---------------------------.ooO----( )-------------------------
( ) (_/
\_)
signature.asc
Description: OpenPGP digital signature
