RE: [SMARTY-DEV] Is Smarty using PHP output buffering?

From: Date: Wed, 07 May 2003 16:30:24 +0000
Subject: RE: [SMARTY-DEV] Is Smarty using PHP output buffering?
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1410@lists.php.net to get a copy of this message
luis wrote: > Overriding for this is just a hack to circunvent the lack of > a switch, IMHO devels Override Smarty methods when they want > the method to behave in a particular way for his application. > Using or not using OB is something that doesn't depend on the > application. I disagree. I might want to use OB for one application that doesn't need the "instant feedback" of non-buffered output, and not use it for a customer-facing app that should get some output on the screen as soon as possible. For instance, one of my clients has their intranet as well as their public site served by one Smarty installation. This particular server doesn't have mod_gzip, so the public site is completely non-OB'd. I've got the intranet buffered so I can do some things with headers. I chose to implement this with two Smarty subclasses, one for the intranet and one for the public site. Now, if there were a switch in Smarty to turn on/off OB, I'd _still_ use two subclasses so that I didn't have to explicitly turn it on/off each time. Gary

« previous php.smarty.dev (#1410) next »