01-31-2017, 07:54 AM
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.
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.