1.修复后台无法退出的bug
2.更新tp内核
This commit is contained in:
@@ -129,6 +129,22 @@ class Think
|
||||
return $path . ltrim($template, '/') . '.' . ltrim($this->config['view_suffix'], '.');
|
||||
}
|
||||
|
||||
/**
|
||||
* 配置模板引擎
|
||||
* @access private
|
||||
* @param string|array $name 参数名
|
||||
* @param mixed $value 参数值
|
||||
* @return void
|
||||
*/
|
||||
public function config($name, $value = null)
|
||||
{
|
||||
if (is_array($name)) {
|
||||
$this->template->config($name);
|
||||
} else {
|
||||
$this->template->$name = $value;
|
||||
}
|
||||
}
|
||||
|
||||
public function __call($method, $params)
|
||||
{
|
||||
return call_user_func_array([$this->template, $method], $params);
|
||||
|
||||
Reference in New Issue
Block a user