Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP tag in templates
#4
You can do the same.

Each echo and the return of your function must be assgin into smarty variable and after used these variables like {$YEAR} into your smarty template.

You have a lot of examples of this on coreBOS. For example, look at modules/Vtiger/EditView.php, here you have many assings values to smarty.
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: 4 Guest(s)