如何访问 .tpl 文件内的 $current_user
全局变量?我需要用它自定义 View 的某些部分。
最佳答案
{php}
global $current_user;
$this->_tpl_vars['current_user_email'] = $current_user->email1;
{/php}
现在,在 tpl 文件中为当前用户使用 $current_user_email
变量。
关于php - 如何访问 SuiteCRM 中 .tpl 文件中的全局变量 $current_user,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44885932/