/** * Добавляет параметры в URL * * @param string $queryString * @param bool|array $mode * * @return string */ public function addParamToUrl($queryString, $mode = false) { $get = $this->request->iniGET(); $addition = $this->router->createGetFrom($queryString); $param = array_merge($get, $addition); $queryString = '?' . http_build_query($param); return $this->createUrl($queryString, $mode); }
/** * Запускает роутер * * @return void */ public function route() { $this->router = new Router(); $this->router->config = $this->config; $this->router->run(); }
/** * Разбирает массив HASH в массив GET по правилам роутинга * * @return void */ protected function parseRequestUri() { $uriHash = $this->createUriHash(); return $this->router->convertUri($uriHash); }