From 096dddec606be325b72d7f02948ebdfa56da5e24 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Sun, 18 May 2014 17:21:50 +0300 Subject: [ci skip] Add a note to CI_Model::__get() (issue #3046) --- system/core/Model.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'system/core') 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; } -- cgit v1.2.3-24-g4f1b