RE: [SMARTY] Custom resources

From: Date: Thu, 04 May 2006 05:52:48 +0000
Subject: RE: [SMARTY] Custom resources
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13418@lists.php.net to get a copy of this message
Thank you so much! E > > function db_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) { > > return false; // it's always new > > } > > Hi. > > You return false only on failure -- ie: you can't determine > the timestamp at > all. The implied condition is then that you can't locate the > requested resource > item. Otherwise, you should return true and populate > $tpl_timestamp with the > proper timestamp. If you want non-expiring templates and > don't intend to > look-up the proper timestamp, set the timestamp for > $tpl_timestamp to now > (perhaps with time()). > > HTH

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