function Controller() { parent::_Loader(); /* |---------------------------------------------- | Initialize the Core Resources |---------------------------------------------- | | These are the base libs needed to run CI | */ $this->ini_core(); /* |---------------------------------------------- | Globalize the controller object |---------------------------------------------- | | This lets us overcome some PHP 4 scoping limitations. | It's more of a hack, really... | Do NOT assign $OBJ by reference. | */ $this->load =& $this; global $OBJ; $OBJ = $this->load; /* |---------------------------------------------- | Auto-initialize |---------------------------------------------- | | This initializes the core systems that are | specified in the libraries/autoload.php file, as | well as the systems specified in the $autoload | class array above. | | It returns the "autoload" array so we can | pass it to the Loader class since it needs | to autoload plugins and helper files | */ $autoload = $this->autoload(); /* |---------------------------------------------- | Run the autoloader |---------------------------------------------- */ $this->load->_autoload($autoload); log_message('debug', "Controller Class Initialized"); }
function Controller() { parent::_Loader(); /* |---------------------------------------------- | Auto-initialize |---------------------------------------------- | | This initializes the core systems that are | specified in the libraries/autoload.php file, as | well as the systems specified in the $autoload | class array above. | | It returns the "autoload" array so we can | pass it to the Loader class since it needs | to autoload plugins and helper files | */ $autoload = $this->auto_initialize(); /* |---------------------------------------------- | Run the autoloader |---------------------------------------------- */ $this->_autoload($autoload); /* |---------------------------------------------- | Globalize the controller object |---------------------------------------------- | | This lets us overcome some scoping limitations | Do NOT pass this by reference. | */ global $OBJ; $OBJ = $this; log_message('debug', "Controller Class Initialized"); }