0
我试图改变模板文件夹的位置有反正那么做吗?如何更改smarty模板位置?
我试图改变模板文件夹的位置有反正那么做吗?如何更改smarty模板位置?
只需设置你的template_dir模板Smarty的对象:
$smarty->template_dir = "/path/to/templates";
如果您已经扩展Smarty的类,你只要写在你的类,它扩展Smarty的类:
$this->template_dir = "template/folder";