mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
traits\controller\View类增加engine方法用于初始化模板引擎
增加validate和auto额外扩展配置文件
This commit is contained in:
@@ -72,4 +72,17 @@ trait View
|
||||
$this->initView();
|
||||
$this->view->assign($name, $value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化模板引擎
|
||||
* @access protected
|
||||
* @param string $engine 引擎名称
|
||||
* @param array $config 引擎参数
|
||||
* @return void
|
||||
*/
|
||||
public function engine($engine, $config = [])
|
||||
{
|
||||
$this->initView();
|
||||
$this->view->engine($engine, $config);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user