currently i change smarty 2 -> version 3
but after i change got problem as below.
SmartyCompilerException: Syntax Error in template
"/home/test/engine/mobile9/template/t_footer.tpl" on line 28
"{php}" unknown tag "php" in /home/test/engine/modules/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 617
after that i check smarty 3 documentations. it shown {php} is valid operator.
Check the documentation here:
If you're using Smarty 3.0x, it should work. If you're using Smarty 3.1, you have to install the SmartyBC class (Backwards Compatibility Wrapper) for the use of the
{php}
-Tag.But where possible try to follow Smartys advice: Put PHP logic in PHP scripts, and not into the Smarty templates.