Re: Re[2]: [PHP] smarty

From: Date: Wed, 14 Apr 2004 16:57:34 +0000
Subject: Re: Re[2]: [PHP] smarty
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-183355@lists.php.net to get a copy of this message
* John W. Holmes <holmes072000@charter.net> [2004-04-14 11:57:00 -0400]: <snip> > You're relying on web-server writable directories when you use Smarty. > It's all a trade-off. This gets problematic in multi-user environments. You cant use mod_php anylonger, instead you have to switch to slow cgi+suexec. Okay, w/ metuxmpm this problem goes away - each vhost can get its own uid - but its not 100% stable yet (some rarely situations w/ recoursive requests seem to make MT problems) > > But what if you want to take your template and perform a bit more than > > just mere variable substitution on it? How about highlighting all > > words that match a search term, or applying logic to a display block > > based on a user status? > > You can do this with output buffering and PHP functions. Smarty just > provides you a different interface. Output Buffering is a bad hack. The original branch of content-builder's base template system used this, but I've completely removed this - now there's exactly one print call at the very end of the page processing. If there have to be snippets rendered separately, it goes directly into variables or the template-engine's internal buffers (required when template processing run in a different process or host) cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT services phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact@metux.de cellphone: +49 174 7066481 --------------------------------------------------------------------- -- DSL-Zugang ab 0 Euro. -- statische IP -- UUCP -- Hosting -- ---------------------------------------------------------------------

« previous php.general (#183355) next »