Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP tag in templates
#2
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:

PHP Code:
$smarty = new vtigerCRM_Smarty();
$smarty->assign('YEAR'date('Y')); 

And now on smarty template you can use YEAR variable like this: {$YEAR}
Reply


Messages In This Thread
PHP tag in templates - polanskiman - 01-31-2017, 06:54 AM
RE: PHP tag in templates - omarllorens - 01-31-2017, 07:16 AM
RE: PHP tag in templates - polanskiman - 01-31-2017, 07:34 AM
RE: PHP tag in templates - omarllorens - 01-31-2017, 07:54 AM
RE: PHP tag in templates - polanskiman - 01-31-2017, 08:05 AM
RE: PHP tag in templates - omarllorens - 01-31-2017, 08:17 AM
RE: PHP tag in templates - polanskiman - 01-31-2017, 08:22 AM
RE: PHP tag in templates - omarllorens - 01-31-2017, 08:27 AM
RE: PHP tag in templates - polanskiman - 01-31-2017, 08:55 AM
RE: PHP tag in templates - joebordes - 01-31-2017, 11:02 AM
RE: PHP tag in templates - polanskiman - 02-01-2017, 02:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)