Re: [SMARTY] Output buffering?
| From: | Hinrich Donner | Date: | Tue, 04 Mar 2003 13:17:20 +0000 |
| Subject: | Re: [SMARTY] Output buffering? | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8379@lists.php.net to get a copy of this message | ||
Hi,
include 'Smarty.class.php';
ob_start('ob_gzhandler');
$smarty =& new Smarty();
$smarty->Display('my.tpl');
$output = ob_get_contents();
ob_end_clean();
echo $output;
On Tuesday 04 March 2003 14:01, James Burrows wrote:
> Hi there,
>
> Is it possible to perform output buffering using smarty? I'd like to gzip
> my output before sending it to the browser.
>
> Thanks,
> James
--
Hinrich Donner