Re: [SMARTY] FW: capture display function output
| From: | Prarie Blake | Date: | Thu, 21 Oct 2004 06:01:44 +0000 |
| Subject: | Re: [SMARTY] FW: capture display function output | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11904@lists.php.net to get a copy of this message | ||
Not funny at all. Just use the fetch(...) method. Returns what would
be displayed if you called display(...) with the same parameters.
See
http://smarty.php.net/manual/en/language.function.fetch.php
Cheers
--
Prarie
http://www.pbent.com
On Thu, 21 Oct 2004 15:05:42 +1000, Benjamin Wragg <bwragg@tpg.com.au> wrote:
> Hi,
>
> I'm evaluating smarty and have a question regarding the display function. It
> might seem a bit funny but I need to capture what display() would create and
> save it as a php variable. Is this possible?
>
> Thanks,
>
> Benjamin Wragg
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.777 / Virus Database: 524 - Release Date: 14/10/2004
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>