summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-05-18 16:21:50 +0200
committerAndrey Andreev <narf@devilix.net>2014-05-18 16:21:50 +0200
commit096dddec606be325b72d7f02948ebdfa56da5e24 (patch)
treeb93dea16440315fc0c613c2305ee40c2ed8ec8a5 /system/core
parent5a62f019a4643e5471e9f651ba52620cfbb11827 (diff)
[ci skip] Add a note to CI_Model::__get() (issue #3046)
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Model.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/core/Model.php b/system/core/Model.php
index 9485ec2c9..9736faa7e 100644
--- a/system/core/Model.php
+++ b/system/core/Model.php
@@ -59,6 +59,10 @@ class CI_Model {
*/
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;
}