* fix app->error to app->triggerError.

This commit is contained in:
wyd621
2013-07-29 14:05:29 +08:00
parent 90966238f5
commit fb1b8520a3
5 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ class model
if(!helper::import($modelFile)) return false;
$modelClass = class_exists('ext' . $moduleName. 'model') ? 'ext' . $moduleName . 'model' : $moduleName . 'model';
if(!class_exists($modelClass)) $this->app->error(" The model $modelClass not found", __FILE__, __LINE__, $exit = true);
if(!class_exists($modelClass)) $this->app->triggerError(" The model $modelClass not found", __FILE__, __LINE__, $exit = true);
$this->$moduleName = new $modelClass();
return $this->$moduleName;