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
|