in tpl file for example
{$listings.activation_date} = 2013-12-20 20:46:10
and when use this:
[[$listings.activation_date]]=12.20.2013
how to use :
{assign var=foo value='12.20.2013'}
{if $foo == [[$listings.activation_date]]}
this does not work and throws back this error:
Fatal error! Your request can not be executed!
and another question is how to get today time in tpl file.
{$currentDate}
in home.tpl. in ur case it might be index.php and to get current year in home.php call date() and use substr method or explode() to get year. and assign that yeat to smarty template variable. all the logic or bussiness logic must be created and handeled in .php file. use .tpl to only make html – Dec 21 '13 at 01:34