I'm having a bit of trouble figuring out where you would place independent
module based settings.

The bootstrap loads ALL resources, including setting (resetting) values that
different between them. Controller Plugin is global, not module independent.
Then you have ... well, nothing else.

The issue I have is the view/layout layer. The paths actually differ based
on which module you use. If it's "admin", I'm just gonna use the default
setup, with layout "index"
But if it's "default", I need to modify the view path to specific
directories, adding in paths based on which site you're on, with the layouts
within the site specific layout directory. Kind of hard to explain this
setting, but a short preview:
/view/<default-site>/scripts/
/view/<default-site>/layouts/
/view/<site>/scripts/
/view/<site>/layouts/

The idea is <site> will override <default-site> if <site> doesn't have the
necessary file(s).

Anyway ... the setup details aren't important; it's being able to run the
setup that is.

This is all module specific.

On top of that, I have bootstrap resources, (or an independent class?) that
loads Site specific information from the database that only "default" cares
about. DB connection is the same across both modules.
Setting up 'Site' as a resource causes it to get loaded for both 'admin' and
'default'. However, if I setup 'Site' like a model, I can't figure out how
to access 'db' resource.
(Zend_Db_Table? Too many tables, too many FKs. Would slow things down far,
far too much - I need to write my own model classes: speed is very important
- and no reliance on cache.)

My setup isn't too unique, other than the view-template inheritance. Am I
missing something here?

---
Philip
[email protected]
http://www.gpcentre.net/

Reply via email to