mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-02 21:41:36 +08:00
改进model的validate方法
This commit is contained in:
@@ -376,6 +376,8 @@ class Loader
|
||||
$class = str_replace('\\' . $module . '\\', '\\' . COMMON_MODULE . '\\', $class);
|
||||
if (class_exists($class)) {
|
||||
$validate = new $class;
|
||||
} else {
|
||||
throw new Exception('class [ ' . $class . ' ] not exists', 10001);
|
||||
}
|
||||
}
|
||||
$_instance[$name . $layer] = $validate;
|
||||
|
||||
Reference in New Issue
Block a user