Re: HTML/IT.php
| From: | Bertrand Mansion | Date: | Thu, 01 Aug 2002 10:55:46 +0000 |
| Subject: | Re: HTML/IT.php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-8120@lists.php.net to get a copy of this message | ||
le 1/08/02 11:04, Olivier Vanhoucke à root@nanouk.org a écrit :
> Hi,
>
> I'm trying to use Pear Template Engine, it looks good but i don't see
> anything to replace a block (in file a.tpl for example) by another template
> file (b.tpl) .
>
> should i do something like that :
>
> {DATA} -> $tpl->setVariable('DATA', implode('',
> @file('templates/b.tpl')));
You can replace a placeholder by a template file, this will make the
placeholder a new block with the template file contents.
You'll have to use ITX which is an extension of IT to do this.
Look at the addBlockFile method.
Bertrand Mansion
Mamasam