Re: which template?
| From: | Alexander Wagner | Date: | Wed, 07 Feb 2001 12:57:27 +0000 |
| Subject: | Re: which template? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38537@lists.php.net to get a copy of this message | ||
Thomas Jaske wrote:
> Which template can I use to do this simply?
>
> $template = new Template();
> $template->assign(content_item, placeholder);
> $page = template($template_file);
> $page->print();
With PHPlib-Templates, it would look like this:
$template = new Template("./path/to/template/files");
$template->set_file("anyname",$filename);
$template->set_var("placeholder","content");
$template->pparse("anyname");
Wagner
--
Three may keep a secret, if two of them are dead.