mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
取消 APP_DEBUG 常量 改为 App::$debug 属性获取 设置调试模式 改为 app_debug 配置参数 在应用配置文件中设置
This commit is contained in:
@@ -66,7 +66,7 @@ class Php
|
||||
throw new TemplateNotFoundException('template file not exists:' . $template, $template);
|
||||
}
|
||||
// 记录视图信息
|
||||
APP_DEBUG && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');
|
||||
App::$debug && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');
|
||||
extract($data, EXTR_OVERWRITE);
|
||||
include $template;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user