Update Think.php

修改Think驱动,增加config方法,支持参数配置和获取
This commit is contained in:
shuipf
2016-02-20 12:58:48 +08:00
parent 0203b3cf38
commit 5217692224

View File

@@ -29,4 +29,20 @@ class Think
$this->template->fetch($template, $data);
}
}
/**
* 修改模板引擎配置项
* @access public
* @param array|string $config
* @return string|array
*/
public function config($config)
{
if(is_array($config)){
$this->template->config($config);
return $this;
}else{
return $this->template->config($config);
}
}
}