public function __get($key)
{
if (!isset(get_instance()->$key)) {
$e = new Exception();
$backTrace = $e->getTraceAsString();
log_message('error', "Attempting to access empty key: {$backTrace}");
}
// 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;
}