01-31-2017, 07:16 AM
Hi.
Since 1 month ago, I think, we have updated Smarty to version 3. So this version not support more the php tags, you can read here: http://www.smarty.net/docs/en/language.function.php.tpl
We have updated all the templates removing all the php tags and write this code into php scripts to after assign this values to smarty variables.
For example:
If you want date('Y') on your template, you have to add this to the php file that call the template like this:
And now on smarty template you can use YEAR variable like this: {$YEAR}
Since 1 month ago, I think, we have updated Smarty to version 3. So this version not support more the php tags, you can read here: http://www.smarty.net/docs/en/language.function.php.tpl
We have updated all the templates removing all the php tags and write this code into php scripts to after assign this values to smarty variables.
For example:
If you want date('Y') on your template, you have to add this to the php file that call the template like this:
PHP Code:
$smarty = new vtigerCRM_Smarty();
$smarty->assign('YEAR', date('Y'));
And now on smarty template you can use YEAR variable like this: {$YEAR}