Re: [SMARTY] Template last modification date

From: Date: Fri, 17 Mar 2006 18:23:41 +0000
Subject: Re: [SMARTY] Template last modification date
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13367@lists.php.net to get a copy of this message
{flamewar}I think it works fine{/flamewar} 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 > > >

« previous php.smarty.general (#13367) next »