Accessing PHP variable in .tpl

SugarCRM, SuiteCRM Navin Rakhonde
Sometimes situation may arise when you want some PHP code in tpl. Following piece of code will show how to achieve this. {php} global $current_user; $this->_tpl_vars['current_user_email'] = $current_user->email1; {/php} Now use 'current_user_email' variable as follows in tpl. <input type="text" id = "current_user_email" name="current_user_email" value='{$current_user_email}'> Hope you find this blog post helpful.…
Read More