__construct() public method

Runs the route mapping function.
public __construct ( array $routing = NULL ) : void
$routing array
return void
 public function __construct()
 {
     if (isset($_SERVER['HTTP_APIVER'])) {
         $this->version = $_SERVER['HTTP_APIVER'];
     }
     parent::__construct();
 }
Esempio n. 2
0
 /**
  * Constructor
  *
  * Runs the route mapping function.
  */
 function __construct()
 {
     parent::__construct();
     // Process 'modules_locations' from config
     $locations = $this->config->item('modules_locations');
     if (!$locations) {
         $locations = array(APPPATH . 'modules/');
     } else {
         if (!is_array($locations)) {
             $locations = array($locations);
         }
     }
     // Make sure all paths are the same format
     foreach ($locations as &$location) {
         $location = realpath($location);
         $location = str_replace('\\', '/', $location);
         $location = rtrim($location, '/') . '/';
     }
     $this->config->set_item('modules_locations', $locations);
 }
Esempio n. 3
0
 function MY_Router()
 {
     parent::__construct();
 }
Esempio n. 4
0
 /**
  * Constructor
  *
  * Runs the route mapping function.
  */
 public function __construct()
 {
     parent::__construct();
 }
 function __construct()
 {
     // Call the Model constructor
     parent::__construct();
 }
Esempio n. 6
0
 /**
  * Constructor
  *
  * Runs the route mapping function.
  */
 public function __construct()
 {
     $this->config =& load_class('Config', 'core');
     $this->module = new Module($this->config);
     parent::__construct();
 }
Esempio n. 7
0
 /**
  * Class constructor
  *
  * Runs the route mapping function.
  *
  * @return	void
  */
 public function __construct($routing = NULL)
 {
     $this->index_routing = $routing;
     parent::__construct($routing);
 }
Esempio n. 8
0
 /**
  * Class constructor runs the route mapping function in CI3.
  *
  * @param array $routing Optional configuration values.
  *
  * @return void
  */
 public function __construct($routing = null)
 {
     parent::__construct($routing);
     log_message('info', 'BF_Router class initialized');
 }
Esempio n. 9
0
 function __construct()
 {
     parent::__construct();
     log_message('debug', 'Plain_Router Class Initialized');
 }
Esempio n. 10
0
 public function __construct($routing = NULL)
 {
     $this->input =& load_class('Input', 'core');
     parent::__construct($routing);
 }