/** * Override Initialize * * This method is add utlis config * * @param array * @return void */ public function initialize($controller = null) { parent::initialize($controller); // config utils path and check autoloading $this->_ci_utils_paths = array(APPPATH, BASEPATH); $this->_ci_utils_autoloader(); }
/** * To accomodate CI 2.1.0, we override the initialize() method instead of * the ci_autoloader() method. Once sparks is integrated into CI, we * can avoid the awkward version-specific logic. * @return Loader */ function initialize() { parent::initialize(); if (!$this->_is_lt_210) { $this->ci_autoloader(); } return $this; }
/** * Initialize the loader variables * MX versie overschrijven omdat in de testomgeving CI te vroeg wordt geladen **/ public function initialize($controller = NULL) { new CI(); /* set the module name */ $this->_module = CI::$APP->router->fetch_module(); if (is_a($controller, 'MX_Controller')) { /* reference to the module controller */ $this->controller = $controller; /* references to ci loader variables */ foreach (get_class_vars('CI_Loader') as $var => $val) { if ($var != '_ci_ob_level') { $this->{$var} =& CI::$APP->load->{$var}; } } } else { parent::initialize(); /* autoload module items */ $this->_autoloader(array()); } /* add this module path to the loader variables */ $this->_add_module_paths($this->_module); }
/** * Initializer * * @param null $controller */ public function initialize($controller = NULL) { // Load system configuration from database $this->_load_db_config(); parent::initialize($controller); }
/** * To accomodate CI 2.1.0, we override the initialize() method instead of * the ci_autoloader() method. Once sparks is integrated into CI, we can * avoid the awkward version-specific logic. * * @return \MY_Loader */ function initialize() { parent::initialize(); $this->ci_autoloader(); return $this; }
public function initialize() { parent::initialize(); }
/** * To accomodate CI 2.1.0, we override the initialize() method instead of * the ci_autoloader() method. Once sparks is integrated into CI, we can * avoid the awkward version-specific logic. * * @return \MY_Loader */ public function initialize($controller = null) { parent::initialize(); $this->ci_autoloader(); return $this; }