Using PHP code in Smarty tpl FIle
Easy as boiling an egg! {php}echo “hello!”{/php} Second link down, for reference. Edit as of Smarty 3.1: As of Smarty 3.1 the {php} tags are only available from SmartyBC. Source: http://www.smarty.net/docs/en/language.function.php.tpl