[dokuwiki] Re: Template thoughts

Mr Anchovy wrote:

What I would like is to enable a plugin to define the functions in inc/html.php. Perhaps you could have a setting of $conf['html_php'] and do require_once(DOKU_INC.$conf['html_php']) instead of require_once(DOKU_INC.'inc/html.php'). You may well have a better way.

I don't think that using a config setting is a good option. Better would be to allow the file to be part of a template. e.g.

if (@file_exists(DOKU_TPL.'html.php')
 require_once (DOKU_TPL.'html.php');
DokuWiki mailing list - more info at

Other related posts: