Re: [SMARTY] Smarty's Smartest Practices?

From: Date: Wed, 19 Feb 2003 22:54:12 +0000
Subject: Re: [SMARTY] Smarty's Smartest Practices?
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7955@lists.php.net to get a copy of this message
The one advantage to the second option is you can twiddle the cache settings between the fetch and display, in cases where your central content is less dynamic, but more computationally expensive than your outer framing. Paul Lockaby wrote:
PHP script contains: $smarty->assign("template","news.tpl"); $smarty->display("index.tpl"); Template contains: {include file=$template} ... versus ... PHP script contains: $template = $smarty->fetch("news.tpl"); $smarty->assign("content",$template); $smarty->display("index.tpl"); Template contains: {$content} Which one do you guys tend to use and for what reasons?
-- - Kelly Cochran http://www.trolans.net/

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