我需要从php文件到.tpl文件显示一些外部数据.为此,我想将php文件包含到.tpl文件中.我试过以下代码来显示php文件内容到tpl.
{php} include('custom_code.php'); {/php}
但在页面输出是 include('custom_code.php');
include('custom_code.php');
php smarty
php ×1
smarty ×1