protected function processQuery() { if (!$this->request->query()) { return; } $paramsMaxIndex = count($this->request->params()); foreach (explode('&', $this->request->query()) as $keyValuePair) { if (strpos($keyValuePair, '=') !== false) { list($key, $value) = explode('=', $keyValuePair); } else { $key = $paramsMaxIndex++; $value = $keyValuePair; } $this->request->setParam($key, $value); } }