mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进View类
This commit is contained in:
@@ -39,6 +39,9 @@ class View
|
|||||||
public function __construct(array $config = [])
|
public function __construct(array $config = [])
|
||||||
{
|
{
|
||||||
$this->config($config);
|
$this->config($config);
|
||||||
|
if (empty($this->config['view_path']) && defined('VIEW_PATH')) {
|
||||||
|
$this->config['view_path'] = VIEW_PATH;
|
||||||
|
}
|
||||||
$engineConfig = array_merge(Config::get(), [
|
$engineConfig = array_merge(Config::get(), [
|
||||||
'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