Re: Cache for a few templates

From: Date: Mon, 01 Oct 2001 14:52:33 +0000
Subject: Re: Cache for a few templates
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1588@lists.php.net to get a copy of this message
I used the componentized template approach for my news template which gives something like {php} connect to DB query DB $this->caching = true; $this->assign('VAR', $myNews); {/php} I have warnings on line 971 and 1101 (smarty 1.4.5), it cannot write to file. Just set Smarty caching property to true/false, depending on which page is being displayed. -Andrei "Everything should be made as simple as possible, but not simpler." -- Albert Einstein

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