_set_request() protected method

Takes an array of URI segments as input and sets the class/method to be called.
protected _set_request ( array $segments = [] ) : void
$segments array URI segments
return void
Esempio n. 1
0
 function _set_request($segments = array())
 {
     for ($i = 0; $i < count($segments) && $i < 2; $i++) {
         $segments[$i] = str_replace('-', '_', $segments[$i]);
     }
     parent::_set_request($segments);
 }
Esempio n. 2
0
 function _set_request($seg = array())
 {
     // The str_replace() below goes through all our segments
     // and replaces the hyphens with underscores making it
     // possible to use hyphens in controllers, folder names and
     // function names
     parent::_set_request(str_replace('-', '_', $seg));
 }
Esempio n. 3
0
 function _set_request($seg = array())
 {
     parent::_set_request(str_replace('-', '_', $seg));
 }