|
不會吧,你看他的get和set相關方法沒,錯得那么幼稚 public function setTemplatePath()
{
if (is_readable( $this->_smarty->template_dir ))
{
return $this->_smarty->template_dir;
}
throw new Exception('Invalid TemplatePath provided');
}
/**
* 设置模板编译路径
*
* @param string $path The directory to set as the path.
* @return void
*/
public function setCompilePath()
{
if (is_readable( $this->_smarty->compile_dir))
{
return $this->_smarty->compile_dir;
}
throw new Exception('Invalid CompilePath provided');
}
public function getTemplatePath()
{
return $this->_smarty->template_dir;
}
|