mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
实例化模型的时候 如果没有加载模型类 日志会记录一个警告错误
This commit is contained in:
@@ -146,6 +146,7 @@ class Loader {
|
||||
if(class_exists($class)) {
|
||||
$model = new $class($name);
|
||||
}else {
|
||||
Log::record('实例化不存在的类:'.$class,'NOTIC');
|
||||
$model = new Model($name);
|
||||
}
|
||||
$_model[$name.$layer] = $model;
|
||||
|
||||
Reference in New Issue
Block a user