diff options
author | admin <devnull@localhost> | 2006-10-11 21:16:58 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-11 21:16:58 +0200 |
commit | 4003718f35247ef9b4a8d678389bda639677bac7 (patch) | |
tree | 9cb7a9a559b5adfc4f5c6139078b4753aecb544d /system/codeigniter | |
parent | 2799120c10b8d2544dd71e37b3a48c1eaa834c48 (diff) |
Diffstat (limited to 'system/codeigniter')
-rw-r--r-- | system/codeigniter/Base4.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/system/codeigniter/Base4.php b/system/codeigniter/Base4.php index 9366b4588..2793317e7 100644 --- a/system/codeigniter/Base4.php +++ b/system/codeigniter/Base4.php @@ -21,7 +21,7 @@ * This file is used only when Code Igniter is being run under PHP 4. * * In order to allow CI to work under PHP 4 we had to make the Loader class - * the parent of the Controller Base class. It's the only way we enabled + * the parent of the Controller Base class. It's the only way we can * enable functions like $this->load->library('email') to instantiate * classes that can then be used within controllers as $this->email->send() * @@ -42,11 +42,13 @@ function CI_Base() { + // This allows syntax like $this->load->foo() to work parent::CI_Loader(); $this->load =& $this; + // This allows resources used within controller constructors to work global $OBJ; - $OBJ = $this->load; + $OBJ = $this->load; // Do NOT use a reference. } } |