List Info

Thread: Template last modification date




Template last modification date
user name
2006-03-17 15:18:38
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 <sigzerogmail.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
>
>
Template last modification date
user name
2006-03-17 15:51:08
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 ------
> 
> On 3/17/06, Robert Hicks <sigzerogmail.com> wrote:

Thank you!

Robert

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )