Discussion: Custom resources
Afficher un message
Vieux 04/05/2006, 06h52   #3
Eric Mueller
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: [SMARTY] Custom resources

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

  Réponse avec citation
 
Page generated in 0,04680 seconds with 9 queries