mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
改写View类的instance方法
This commit is contained in:
@@ -29,7 +29,7 @@ trait View
|
||||
{
|
||||
// 模板引擎参数
|
||||
if (is_null($this->view)) {
|
||||
$this->view = new \think\View(Config::get()); // 只能这样写,不然view会冲突
|
||||
$this->view = \think\View::instance(Config::get()); // 只能这样写,不然view会冲突
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user