FW: [PEAR-DEV] ITX multiple files example?
| From: | Dietrich Ayala | Date: | Mon, 05 Nov 2001 18:08:26 +0000 |
| Subject: | FW: [PEAR-DEV] ITX multiple files example? | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-2561@lists.php.net to get a copy of this message | ||
it seems that the addBlock() method should accomplish that functionality:
it should be able to load a file, and treat the content as a new block, and
have the block replace an existing variable placeholder (changing the
variable placeholder into a block)... but i have not gotten it to work yet
;)
i do not understand if after i call addBlock() do i have:
- a block named after the placeholder?
- a block named by the blockname i passed to the method?
i only got this far after much trial and error ;)
> -----Original Message-----
> From: Wolfram Kriesing [mailto:lists@kriesing.de]
> Sent: Monday, November 05, 2001 12:06 PM
> To: Dietrich Ayala
> Cc: list
> Subject: Re: [PEAR-DEV] ITX multiple files example?
>
>
> > i'm trying to figure out how to use separate template files as
> > blocks within the global template with ITX.
>
> i tried to figure that out too,
> i think there is no way
> you have to use a template-object for the block, parse it and put the
> content in a {spaceHolder}
> that's how i did it and it made me see that IT[X] needs to be
> extended or replaced
>
> are there plans to extend this or add a better Template-class to PEAR?
>
>
> --
> Wolfram
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, e-mail: pear-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: pear-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>