How to add php script into .tpl file

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.

 your php code here 

That’s all.

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *