mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进View类
This commit is contained in:
@@ -39,6 +39,9 @@ class View
|
||||
public function __construct(array $config = [])
|
||||
{
|
||||
$this->config($config);
|
||||
if (empty($this->config['view_path']) && defined('VIEW_PATH')) {
|
||||
$this->config['view_path'] = VIEW_PATH;
|
||||
}
|
||||
$engineConfig = array_merge(Config::get(), [
|
||||
'view_path' => $this->config['view_path'],
|
||||
'view_suffix' => $this->config['view_suffix'],
|
||||
|
||||
Reference in New Issue
Block a user