Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
要显示模板,只需:
$smarty->display('base_layout.tpl');
在我的项目中,我将始终使用相同的模板,但会更改变量。是否有我可以在配置文件中设置的配置值,以便我可以执行以下操作:
$smarty->display();
并且总是打电话filename.tpl吗?
filename.tpl
您可以覆盖smarty->display()函数来处理其参数。
smarty->display()