Re: [SMARTY] Template last modification date

Robert Hicks <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
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 <[email protected]> wrote:

Thank you!

Robert

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.