Hi,

I have the following setup:

1. My application, has the usual stuff, "core" modules, controllers etc etc.
2. Library, Zend, ZendX, PHPExcel etc. and my own library-level classes.
3. site-specific folder. this one has application.ini, cache folder, search
index. etc.
   everything to do with the current instance of my application.
   In this folder I also have my site specific or "external" modules

I have just added this modules folder to frontcontroller so it knows that
there is a
second modules folder. Of course you can put this folder anywhere.

In my bootstrap I just do the following ( _initSiteModules() ):
// Add site specific modules
if (file_exists(SITE_PATH ."/modules"))
{
        $this->getResource("frontController")->addModuleDirectory(SITE_PATH
."/modules");
}

And well, you can keep this directory information for example in your
configs or where ever.

I also made "hook" system, which allows me to extend behaviour of my "core"
modules.
For example, my "tag" module adds tag field to form in "user" module...
I can post more about that, if someone is interested in.

br,
Marko
-- 
View this message in context: 
http://n4.nabble.com/External-Modules-tp977596p977678.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to