RE: [SMARTY] Custom resources

[email protected] ("Eric Mueller") Wed, 3 May 2006 22:52:48 -0700
Newsgroups php.smarty.general
Message-ID <[email protected]>
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