$class) { $this->$var =& load_class($class); } // In PHP 5 the Loader class is run as a discreet // class. In PHP 4 it extends the Controller @PHP4 if (is_php('5.0.0') == TRUE) { $this->load =& load_class('Loader', 'core'); $this->load->_base_classes =& is_loaded(); $this->load->_ci_autoloader(); } else { $this->_ci_autoloader(); // sync up the objects since PHP4 was working from a copy foreach (array_keys(get_object_vars($this)) as $attribute) { if (is_object($this->$attribute)) { $this->load->$attribute =& $this->$attribute; } } } log_message('debug', "Controller Class Initialized"); } } // END Controller class /* End of file Controller.php */ /* Location: ./system/core/Controller.php */