mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
Update Think.php
修改Think驱动,增加config方法,支持参数配置和获取
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user