Re: gizp function

From: Date: Sun, 27 May 2001 09:51:43 +0000
Subject: Re: gizp function
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-823@lists.php.net to get a copy of this message
I think printing out headers is the purpouse of the logic and not the display part of the application. So templates should not decide to output headers... Goba ........................................................... . . . . . Editor of the Hungarian PHP manual, Admin of the Hungarian PHP mirror > Oh, I misunderstood your comment. I was talking about the output of the > display() function itself. > > > > only if caching is enabled. > > > > > > > > using PHP's output buffering makes it possible to set headers (and > > > > cookies) > > > > > virtually after the content has been put out. > > > > > the coder doesnt have to care when he sets a cookie - > > > > > in many case this allows the structure of the code to be more simple. > > > > > > > > This is also the case if you use Smarty. The output will go out > > > > at the end of the script... $smarty->display(); > > > > What is printed out by Smarty before I use the display() func? > > Is there anything?

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