[dokuwiki] Re: custom php file reference plugins, problem with constants not initialised.
- From: Michael Klier <chi@xxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Mon, 16 Mar 2009 23:14:57 +0100
On Tue, Mar 17, 2009 at 11:02:08AM +1300, James Lin wrote:
> Hi guys,
>
> I am writing a php file which would like to use the acl plugin, however, the
> context of my php file doesn't have DOKU_INC constant defined, therefore it
> dies when loading the acl plugin.
> if (!defined('DOKU_INC')) die();
>
> just wondering which file/class to call so I can get the DOKU_INC and other
> constants initialised?
You want inc/init.php. See also:
http://dev.splitbrain.org/reference/dokuwiki
Regards,
Michael
--
Michael Klier
www: http://www.chimeric.de
jabber: chi@xxxxxxxxxxxxxxxxxx
key: http://downloads.chimeric.de/chi.asc
key-id: 0x8308F551
Other related posts: