Re: Re[2]: [PEAR-DEV] a question to HTML_Template_IT/ITX maintainers
| From: | Pierre-Alain Joye | Date: | Thu, 19 Sep 2002 15:46:05 +0000 |
| Subject: | Re: Re[2]: [PEAR-DEV] a question to HTML_Template_IT/ITX maintainers | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-9214@lists.php.net to get a copy of this message | ||
On Thu, 19 Sep 2002 11:38:21 -0400 (EDT)
"Adam Morton" <adam@tux.appstate.edu> wrote:
>
> $template_dir = "/your/template/directory";
> $template_file = "your_template.html";
>
> $var_array = array("TITLE"=>"This is the title",
> "CONTENT"=>"This is the content");
>
> $tpl = new IntegratedTemplate($template_dir);
> $tpl->loadTemplatefile($template_file);
> $tpl->setVariable($var_array);
I m following this discussion with attention and will try to participate asap :-)
Beside that, just a remark, it seems you use the old version, new version class name is
HTML_Template_IT, please upgrade :)
hth
pa