开发者

how to change smarty template location?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜