默认PHP模板文件是不允许使用的。设置$allow_php_templates为true,则允许使用PHP模板文件。
$allow_php_templates
<?php $smarty->allow_php_templates = true; ?>
PHP模板文件是一个不在文档中注明的废弃特性。