添加 MVC默认层的常量定义

简化视图实例化
This commit is contained in:
thinkphp
2015-01-20 13:46:02 +08:00
parent 8872878e9c
commit 5b81a68e0c
6 changed files with 15 additions and 12 deletions

View File

@@ -30,7 +30,8 @@ class View {
'view_path' => '',
'view_suffix' => '.html',
'view_depr' => '/',
'view_layer' => 'View',
'view_layer' => VIEW_LAYER,
'engine_type' => 'think',
];
/**
@@ -60,6 +61,7 @@ class View {
public function __construct(array $config = []){
$this->config = array_merge($this->config, $config);
$this->engine($this->config['engine_type']);
}
/**