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";
精彩评论