Re: [SMARTY] Need some help with {insert}
| From: | Monte Ohrt | Date: | Wed, 02 Apr 2003 21:18:50 +0000 |
| Subject: | Re: [SMARTY] Need some help with {insert} | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9040@lists.php.net to get a copy of this message | ||
I'm not sure if the modifier would work, I never tried. If not, you can
do it this way:
{insert name="now" format="%Y/%m/%d"}
then have a plugin (insert.now.php) that returns the current date in the
given format.
Monte
On Wed, 2003-04-02 at 11:56, pt2002 wrote:
> Hi everybody,
>
> I have some pages cached with 24 hours lifetime but in every page I need to
> show current date and time with a modifier applied.
> Any suggestions ?
>
> TIA
>
> pt2002
--
Monte Ohrt <monte@ispi.net>