Hi SugarCRM uses smarty therefore this would do your thing
Code:
{php}
echo 'This will be sent to browser';
{/php} But to try make conditions based on given user, goes against MVC logic. Just read bit more about sugarCRM before you will do this to your poor templates.
Make your own controller.php in module folder . (but you have to dig elsewhere to find answer for that, pages 15.-18. from book The Definitive Guide to SugarCRM holds the answer to that) But depends really on situation controller or your own module where you can decide what to show, or set. Template can react to that but don't put php to template that is just ugly.
following is more sugar specific template but you might get the idea
Code:
{{assign var='some_sys_var_c' value=0}}
{php}
$fieldValue = $this->_tpl_vars['some_sys_var_c'];
echo $fieldValue;
{/php} you can read more about it http://www.smarty.net/manual/en/lang...nction.php.php
Bookmarks