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.

David Yin

David is a blogger, geek, and web developer — founder of FreeInOutBoard.com. If you like his post, you can say thank you here

One Reply to “How to add php script into .tpl file”

Leave a Reply

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