Re: [SMARTY] Template last modification date
"messju mohr" <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <20060317181314.GB4296@dune> |
On Fri, Mar 17, 2006 at 10:51:08AM -0500, Robert Hicks wrote:
> Evan Wagner wrote:
> >Change the $filename variable to the path and filename of your template
> >file:
> >
> > ---- BEGIN PHP CODE --------
> >$filename = "templates/index.tpl";
> >$smarty->assign('filemodified', date ("F d Y H:i:s.",
> >filemtime($filename)));
> >------ END PHP CODE ---------
> >
> >----- BEGIN TEMPLATE CODE -----
> >File last modified on {$filemodified}
> >----- END TEMPLATE CODE ------
of course this doesn't work transparently with your smarty
configuration and it does not word for resources.
> >On 3/17/06, Robert Hicks <[email protected]> wrote:
>
> Thank you!
>
> Robert
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
signature.asc
(application/pgp-signature, 191 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEGvw6ubKPpFA4n0URAlCIAKCSM+1v3XVlE8upSJjAqVPT9kKpZwCfbMWh KpF8Wjw835GedTTFyGTkmFg= =Maol -----END PGP SIGNATURE-----