RE: [PEAR] IT[X] change output device?
| From: | Dietrich Ayala | Date: | Tue, 12 Mar 2002 19:10:49 +0000 |
| Subject: | RE: [PEAR] IT[X] change output device? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-953@lists.php.net to get a copy of this message | ||
Also, the get() method returns the parsed contents of the current template as a string (all the
show() method does is call get() and
print it's return value).
If no block names are passed to get(), it'll parse from the global template, ie: parse
everything.
> -----Original Message-----
> From: Stig S. Bakken [mailto:ssb@fast.no]
> Sent: Tuesday, March 12, 2002 7:54 AM
> To: marcbey
> Cc: pear-general@lists.php.net
> Subject: Re: [PEAR] IT[X] change output device?
>
>
> On Mon, 2002-03-11 at 17:53, marcbey wrote:
> > is it possible to load an template such a template.txt,
> > parse it, but dont send to to the browsers output, because the template is
> > text for an email?
> >
> > who can i do this with IT template ?
>
> Just do ob_start(), let your template output what it should, catch the
> output with ob_get_contents() and finish with ob_end_clean().
>
> - Stig
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>