public function findByFile($fileName, $parameters = [])
    {
        if (!strlen(File::extension($fileName))) {
            $fileName .= '.htm';
        }

        $router = $this->getRouterObject();
        return $router->url($fileName, $parameters);
    }
public function findByFile($fileName, $parameters = [])
    {
        if (!strlen(File::extension($fileName))) {
            $fileName .= '.htm';
        }

        $router = $this->getRouterObject();
        return $router->url($fileName, $parameters);
    }
public function findByFile ( $ fileName , $ parameters = [ ] ) { if ( ! strlen ( File :: extension ( $ fileName ) ) ) { $ fileName .= '.htm' ; } $ router = $ this -> getRouterObject ( ) ; return $ router -> url ( $ fileName , $ parameters ) ; }
Finds a URL by it's page. Returns the URL route for linking to the page and uses the supplied
parameters in it's address.
@param string $fileName Page file name.
@param array $parameters Route parameters to consider in the URL.
@return string A built URL matching the page route.
Finds a URL by it s page . Returns the URL route for linking to the page and uses the supplied parameters in it s address .