mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-02 21:52:34 +08:00
添加 MVC默认层的常量定义
简化视图实例化
This commit is contained in:
@@ -23,12 +23,7 @@ class Controller {
|
||||
*/
|
||||
public function __construct(){
|
||||
// 模板引擎参数
|
||||
$config = [
|
||||
'tpl_path' => MODULE_PATH . 'View/',
|
||||
'cache_path' => RUNTIME_PATH . 'Cache/',
|
||||
];
|
||||
$this->view = new View();
|
||||
$this->view->engine(Config::get('template_engine'), $config);
|
||||
|
||||
//控制器初始化
|
||||
if(method_exists($this, '_initialize'))
|
||||
|
||||
Reference in New Issue
Block a user