List Info

Thread: Template last modification date




Template last modification date
user name
2006-03-17 18:23:41
I think it works fine{/flamewar}

On 3/17/06, messju mohr <messjulammfellpuschen.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 <sigzerogmail.com> wrote:
> >
> > Thank you!
> >
> > 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 18:39:28
On Fri, Mar 17, 2006 at 01:23:41PM -0500, Evan Wagner wrote:
> 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 <messjulammfellpuschen.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 <sigzerogmail.com> wrote:
> > >
> > > Thank you!
> > >
> > > 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-20 13:20:45
messju mohr wrote:
> On Fri, Mar 17, 2006 at 01:23:41PM -0500, Evan Wagner
wrote:
>> 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?".
> 
For "my" purposes, they are one and the same. :
)

Robert

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

[1-3]

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