protected function reload(array $get = [], bool $merge = false): void
    {
        $path = parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);

        // Query
        {
            $query = [];

            if ($merge) {
                parse_str(parse_url($_SERVER["REQUEST_URI"], PHP_URL_QUERY), $query);
            }

            $query = array_merge($query, $get);
            $queryString = http_build_query($query);
        }

        $this->redirect($path . (!empty($queryString) ? '?' . $queryString : ''));
    }
protected function reload(array $get = [], bool $merge = false): void
    {
        $path = parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);

        // Query
        {
            $query = [];

            if ($merge) {
                parse_str(parse_url($_SERVER["REQUEST_URI"], PHP_URL_QUERY), $query);
            }

            $query = array_merge($query, $get);
            $queryString = http_build_query($query);
        }

        $this->redirect($path . (!empty($queryString) ? '?' . $queryString : ''));
    }
protected function reload ( array $ get = [ ] , bool $ merge = false ) : void { $ path = parse_url ( $ _SERVER [ "REQUEST_URI" ] , PHP_URL_PATH ) ; // Query { $ query = [ ] ; if ( $ merge ) { parse_str ( parse_url ( $ _SERVER [ "REQUEST_URI" ] , PHP_URL_QUERY ) , $ query ) ; } $ query = array_merge ( $ query , $ get ) ; $ queryString = http_build_query ( $ query ) ; } $ this -> redirect ( $ path . ( ! empty ( $ queryString ) ? '?' . $ queryString : '' ) ) ; }
Reload current page.

@param string[] $get   Additional parameters for GET query string
@param bool     $merge Merge parameters

@return void
@uses Controller::redirect()
Reload current page .