[dokuwiki] Re: Global vars within plugins...
- From: "Terence J. Grant" <tjgrant@xxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Mon, 28 Jul 2008 16:33:46 -0400
Hi,
> I'm not sure I understand what you are trying to do but
> function_exists or class_exists should help you with that.
Yeah, that's more along the lines of what I was looking for.
> You should use require_once instead of include_once. The former will
> add the library to the global scope, while the latter *includes* the
> code exactly where it is called (inside your class member function).
> Loading a library from within a function isn't a bad idea at all. It
> ensures the code is only loaded when it is really needed.
Gotcha, sounds good.
Thanks,
--
--Terence J. Grant
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- References:
- [dokuwiki] Global vars within plugins...
- From: Terence J. Grant
- [dokuwiki] Re: Global vars within plugins...
- From: Andreas Gohr
Other related posts:
- » [dokuwiki] Global vars within plugins...
- » [dokuwiki] Re: Global vars within plugins...
- » [dokuwiki] Re: Global vars within plugins...
- [dokuwiki] Global vars within plugins...
- From: Terence J. Grant
- [dokuwiki] Re: Global vars within plugins...
- From: Andreas Gohr