I need to display some external data from php file to .tpl file. For this I want to include php file to .tpl file. I have tried folllowing code to display php file content to tpl.
{php} include('custom_code.php'); {/php}
but on page output was include('custom_code.php');
{php}has been deprecated. Have a look at Extending Smarty With Plugins.put the follwing in
…/plugins/function.yourplugin.php:and use in your template: