[dev] Re: [cvs] commit: horde/lib Template.php
Mike Cochrane
mike@graftonhall.co.nz
Mon Nov 18 10:45:32 2002
Every time I was using Horde_Template I was having to set the base path to '' so
I changed the default. Objections?
It means this works:
$template = &new Horde_Template();
$template->set('title', 'Title');
echo $template->fetch(APPNAME_TEMPLATES . '/page/heading.inc');
Otherwise you had to do
$template = &new Horde_Template('');
- Mike :-)
> ----- Message from mike@graftonhall.co.nz ---------
> Date: Mon, 18 Nov 2002 02:41:56 -0800 (PST)
> From: Mike Cochrane <mike@graftonhall.co.nz>
> Reply-To: dev@lists.horde.org
> Subject: [cvs] commit: horde/lib Template.php
> To: cvs@lists.horde.org
>
> mikec 2002/11/18 02:41:56 PST
>
> Modified files:
> lib Template.php
> Log:
> Change the basepath to ''.
>
> Revision Changes Path
> 1.2 +3 -3 horde/lib/Template.php
>
> Chora Links:
> http://cvs.horde.org/diff.php/horde/lib/Template.php?r1=1.1&r2=1.2&ty=u
>
> --
> To unsubscribe, mail: cvs-unsubscribe@lists.horde.org
>
>
>
> ----- End message from mike@graftonhall.co.nz -----
More information about the dev
mailing list