|
@@ -483,7 +483,7 @@ function Model($model = null, $base_path = null)
|
|
|
$class_name = $model.'Model';
|
|
|
|
|
|
if (!file_exists($file_name)){
|
|
|
- return $_cache[$cache_key] = new Model($model);
|
|
|
+ $_cache[$cache_key] = new Model($model);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -492,9 +492,10 @@ function Model($model = null, $base_path = null)
|
|
|
$error = 'Model Error: Class '.$class_name.' is not exists!';
|
|
|
throw_exception($error);
|
|
|
}else{
|
|
|
- return $_cache[$cache_key] = new $class_name();
|
|
|
+ $_cache[$cache_key] = new $class_name();
|
|
|
}
|
|
|
}
|
|
|
+ return $_cache[$cache_key];
|
|
|
}
|
|
|
}
|
|
|
|