开发者

how to change smarty template location?

开发者 https://www.devze.com 2023-02-03 20:47 出处:网络
I am trying to change开发者_如何学运维 the template folder location is there anyway off doing that?Just set your template_dir on the Smarty object:

I am trying to change开发者_如何学运维 the template folder location is there anyway off doing that?


Just set your template_dir on the Smarty object:

$smarty->template_dir = "/path/to/templates";


If you have extended the Smarty-class, you just have to write this in your class that extends the Smarty-class:

$this->template_dir = "template/folder";
0

精彩评论

暂无评论...
验证码 换一张
取 消