summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Common.php2
-rw-r--r--system/core/Model.php4
2 files changed, 5 insertions, 1 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index e340931b7..7f2708151 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -124,7 +124,7 @@ if ( ! function_exists('load_class'))
*
* @param string the class name being requested
* @param string the directory where the class should be found
- * @param string the class name prefix
+ * @param string an optional argument to pass to the class constructor
* @return object
*/
function &load_class($class, $directory = 'libraries', $param = NULL)
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;
}