diff options
author | Andrey Andreev <narf@devilix.net> | 2017-11-10 14:12:04 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2017-11-10 14:12:04 +0100 |
commit | c9420849853a33a192c482e28c737e166d4fa698 (patch) | |
tree | e6ddc086e31b13dfab68213ca50fa0d0dd309284 /system/core/Loader.php | |
parent | 8c9e51044d991868228dba8b9d5141998347dbfe (diff) |
Close #5330
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r-- | system/core/Loader.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php index fe2d43717..9813e99a9 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php @@ -303,6 +303,8 @@ class CI_Loader { { throw new RuntimeException($app_path."Model.php exists, but doesn't declare class CI_Model"); } + + log_message('info', 'CI_Model class loaded'); } elseif ( ! class_exists('CI_Model', FALSE)) { @@ -317,6 +319,8 @@ class CI_Loader { { throw new RuntimeException($app_path.$class.".php exists, but doesn't declare class ".$class); } + + log_message('info', config_item('subclass_prefix').'Model class loaded'); } } @@ -350,7 +354,9 @@ class CI_Loader { } $this->_ci_models[] = $name; - $CI->$name = new $model(); + $model = new $model(); + $CI->$name = $model; + log_message('info', 'Model "'.get_class($model).'" initialized'); return $this; } |