Re: [SMARTY] Template last modification date

From: Date: Fri, 17 Mar 2006 15:18:38 +0000
Subject: Re: [SMARTY] Template last modification date
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13362@lists.php.net to get a copy of this message
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 ------ On 3/17/06, Robert Hicks <sigzero@gmail.com> wrote: > > I thought I had seen this somewhere on the site but I have been looking > all morning. > > Is there a simple way to display the last mod date of a template? > > Robert > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

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