commit | 096dddec606be325b72d7f02948ebdfa56da5e24 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Sun May 18 17:21:50 2014 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Sun May 18 17:21:50 2014 +0300 |
tree | b93dea16440315fc0c613c2305ee40c2ed8ec8a5 | |
parent | 5a62f019a4643e5471e9f651ba52620cfbb11827 [diff] [blame] |
[ci skip] Add a note to CI_Model::__get() (issue #3046)
diff --git a/system/core/Model.php b/system/core/Model.php index 9485ec2..9736faa 100644 --- a/system/core/Model.php +++ b/system/core/Model.php
@@ -59,6 +59,10 @@ */ public function __get($key) { + // Debugging note: + // If you're here because you're getting an error message + // saying 'Undefined Property: system/core/Model.php', it's + // most likely a typo in your model code. return get_instance()->$key; }