private function checkRequestUri($path, $uri)
    {
        if (strstr($path, '?') == '?') {
            $uri = rtrim($uri, '/').'/';
        }

        // Url check and path PARSER
        $path = str_replace('~', '\\~', $path);

        if (preg_match('~^'. $path . '$~', $uri, $match)) {
            array_shift($match);

            $this->match = str_replace('/', '', $match);

            return true;
        }

        return false;
    }
private function checkRequestUri($path, $uri)
    {
        if (strstr($path, '?') == '?') {
            $uri = rtrim($uri, '/').'/';
        }

        // Url check and path PARSER
        $path = str_replace('~', '\\~', $path);

        if (preg_match('~^'. $path . '$~', $uri, $match)) {
            array_shift($match);

            $this->match = str_replace('/', '', $match);

            return true;
        }

        return false;
    }
private function checkRequestUri ( $ path , $ uri ) { if ( strstr ( $ path , '?' ) == '?' ) { $ uri = rtrim ( $ uri , '/' ) . '/' ; } // Url check and path PARSER $ path = str_replace ( '~' , '\\~' , $ path ) ; if ( preg_match ( '~^' . $ path . '$~' , $ uri , $ match ) ) { array_shift ( $ match ) ; $ this -> match = str_replace ( '/' , '' , $ match ) ; return true ; } return false ; }
Check the url for the search

@param string $path
@param string $uri

@return bool
Check the url for the search