public function renderByName($name)
    {
        $route = $this->getRoute($name);
        if (null === $route) {
            throw new RouteNotFoundException(sprintf('There is no route "%s".', $name));
        }

        $this->render($route, $name);
    }
public function renderByName($name)
    {
        $route = $this->getRoute($name);
        if (null === $route) {
            throw new RouteNotFoundException(sprintf('There is no route "%s".', $name));
        }

        $this->render($route, $name);
    }
public function renderByName ( $ name ) { $ route = $ this -> getRoute ( $ name ) ; if ( null === $ route ) { throw new RouteNotFoundException ( sprintf ( 'There is no route "%s".' , $ name ) ) ; } $ this -> render ( $ route , $ name ) ; }
Renders the page with the route that matches the given name.

@param string $name Name of a route

@return void
Renders the page with the route that matches the given name .