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 |
Результат | void |
function _set_request($segments = array()) { for ($i = 0; $i < count($segments) && $i < 2; $i++) { $segments[$i] = str_replace('-', '_', $segments[$i]); } parent::_set_request($segments); }
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)); }
function _set_request($seg = array()) { parent::_set_request(str_replace('-', '_', $seg)); }