mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进View 避免手动初始化engine的时候 view_path为空值
This commit is contained in:
@@ -118,7 +118,10 @@ class View
|
|||||||
if ('php' == $engine) {
|
if ('php' == $engine) {
|
||||||
$this->engine = 'php';
|
$this->engine = 'php';
|
||||||
} else {
|
} else {
|
||||||
$class = $this->config['namespace'] . ucwords($engine);
|
$class = $this->config['namespace'] . ucfirst($engine);
|
||||||
|
if (empty($this->config['view_path']) && defined('VIEW_PATH')) {
|
||||||
|
$this->config['view_path'] = VIEW_PATH;
|
||||||
|
}
|
||||||
$config = array_merge($config, [
|
$config = array_merge($config, [
|
||||||
'view_path' => $this->config['view_path'],
|
'view_path' => $this->config['view_path'],
|
||||||
'view_suffix' => $this->config['view_suffix'],
|
'view_suffix' => $this->config['view_suffix'],
|
||||||
|
|||||||
Reference in New Issue
Block a user