Re: gizp function

From: Date: Sun, 27 May 2001 22:18:46 +0000
Subject: Re: gizp function
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-826@lists.php.net to get a copy of this message
If you want your template to control all presentation, including whether or not your going to HTML or WML for example, that output needs different content headers. You can handle headers with an insert tag, check the docs under tips & tricks. Hojtsy Gabor wrote: > 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 (#826) next »