Re: [SMARTY] Avoid unnecessary whitespace in compiled templates?

From: Date: Sun, 02 Feb 2003 20:12:34 +0000
Subject: Re: [SMARTY] Avoid unnecessary whitespace in compiled templates?
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7470@lists.php.net to get a copy of this message
lars@usenet.noschinski.de (Lars Noschinski) writes: > messju@lammfellpuschen.de (M Mohr) writes: >> On Wed, Jan 29, 2003 at 04:24:16PM +0100, Lars Noschinski wrote: >>> I've some templates which call a plugins which does a >>> header()-call. But the compiled template contains whitespace which >>> prevents sending the header. How can I avoid this? >> >> you can use output-buffering for that: >> http://www.php.net/manual/en/ref.outcontrol.php > > Oh, right. *sigh* Activate brain before posting ... Hm, does not work: ob_start(); $smarty->display($template); ob_end_flush(); -> Cannot add header information - Headers already sent in $plugin, line $line.

« previous php.smarty.general (#7470) next »