Afficher un message
Vieux 17/03/2006, 18h39   #7
messju mohr
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] Template last modification date

On Fri, Mar 17, 2006 at 01:23:41PM -0500, Evan Wagner wrote:
> {flamewar}I think it works fine{/flamewar}


yes it does work fine. but it does answer the wong question. it
answers "how can i display the modification time of a local file?" and
not "how can I display the modification time of a smarty template?".

> On 3/17/06, messju mohr <messju@lammfellpuschen.de> wrote:
> >
> > 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 <sigzero@gmail.com> wrote:
> > >
> > > Thank you!
> > >
> > > Robert
> > >
> > > --
> > > Smarty General Mailing List (http://smarty.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php

> >
> >
> >


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEGwJfubKPpFA4n0URAqSdAJ9TYRLfK1rrgf86NAPsed UMfUbadwCdGke7
cSq8hCJnZnwwhGbM2RkreqI=
=risc
-----END PGP SIGNATURE-----

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