tpl file are smarty template files. Sometimes I need to add php script, or php code into tpl file. That means I have to add php code into the smarty templates. If you add php code directly, there is error code. The right way is to add script like following way. That’s all.