[dokuwiki] Re: DokuWiki Farms Idea
- From: chi@xxxxxxxxxxx
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sun, 22 Jun 2008 11:22:03 +0200
Andreas Gohr writes:
My idea was to add a new event DOKU_INIT. This would allow to create an
action
plugin which interferes with DWs init process where all the constants are
defined.
I'm not 100% I understood you correctly, but this is a bit of a
chicken-egg problem. DokuWiki needs to know where to look for plugins
to load them. It will need the constants your plugin wants to define
to find the plugin to define the constants to...
Yep, but the plugins are shared between the farms, so, you could initialize
the constants which are common to all instances first like DOKU_PLUGIN etc.
then fire up the event hook before stuff like DOKU_CONF, DOKU_URL and the
like is set which differs per instance. At least that's how I could imagine
that this could work ;). Maybe I forgot about other caveats here?
Chi
- Follow-Ups:
- [dokuwiki] Re: DokuWiki Farms Idea
- From: Maciej Łebkowski
- References:
- [dokuwiki] DokuWiki Farms Idea
- From: chi
- [dokuwiki] Re: DokuWiki Farms Idea
- From: Andreas Gohr
Other related posts:
- » [dokuwiki] DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
My idea was to add a new event DOKU_INIT. This would allow to create an action plugin which interferes with DWs init process where all the constants are defined.
I'm not 100% I understood you correctly, but this is a bit of a chicken-egg problem. DokuWiki needs to know where to look for plugins to load them. It will need the constants your plugin wants to define to find the plugin to define the constants to...
- [dokuwiki] Re: DokuWiki Farms Idea
- From: Maciej Łebkowski
- [dokuwiki] DokuWiki Farms Idea
- From: chi
- [dokuwiki] Re: DokuWiki Farms Idea
- From: Andreas Gohr