mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进View类engine方法 如果传入字符串 则表示模板引擎名称 模板引擎参数取默认值 增加 view_replace_str 配置参数 用于设置全局 视图输出内容替换
This commit is contained in:
@@ -35,7 +35,7 @@ class Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->view = View::instance(Config::get('template'));
|
||||
$this->view = View::instance(Config::get('template'), Config::get('view_replace_str'));
|
||||
|
||||
// 控制器初始化
|
||||
if (method_exists($this, '_initialize')) {
|
||||
|
||||
Reference in New Issue
Block a user