initialize() public method

Initialize the loader variables *
public initialize ( $controller = NULL )
Ejemplo n.º 1
0
 /**
  * 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();
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }
Ejemplo n.º 3
0
 /**
  * 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);
 }
Ejemplo n.º 4
0
 /**
  * Initializer
  *
  * @param null $controller
  */
 public function initialize($controller = NULL)
 {
     // Load system configuration from database
     $this->_load_db_config();
     parent::initialize($controller);
 }
Ejemplo n.º 5
0
 /**
  * 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();
 }
Ejemplo n.º 7
0
 /**
  * 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;
 }