_set_request() protected méthode

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
Résultat void
Exemple #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);
 }
Exemple #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));
 }
Exemple #3
0
 function _set_request($seg = array())
 {
     parent::_set_request(str_replace('-', '_', $seg));
 }