public function render($controllerName)
    {
        $controller = $this->getControllerName($controllerName);
        if (null === $controller) {
            throw new ControllerNotFoundException(sprintf('Could not find controller "%s".', $controllerName));
        }

        $route = $this->getRoute($controller);
        if (null === $route) {
            throw new RouteNotFoundException(sprintf('Could not find route for controller "%s".', $controllerName));
        }

        $this->routeRenderer->render($route[1], $route[0]);
    }
public function render($controllerName)
    {
        $controller = $this->getControllerName($controllerName);
        if (null === $controller) {
            throw new ControllerNotFoundException(sprintf('Could not find controller "%s".', $controllerName));
        }

        $route = $this->getRoute($controller);
        if (null === $route) {
            throw new RouteNotFoundException(sprintf('Could not find route for controller "%s".', $controllerName));
        }

        $this->routeRenderer->render($route[1], $route[0]);
    }
public function render ( $ controllerName ) { $ controller = $ this -> getControllerName ( $ controllerName ) ; if ( null === $ controller ) { throw new ControllerNotFoundException ( sprintf ( 'Could not find controller "%s".' , $ controllerName ) ) ; } $ route = $ this -> getRoute ( $ controller ) ; if ( null === $ route ) { throw new RouteNotFoundException ( sprintf ( 'Could not find route for controller "%s".' , $ controllerName ) ) ; } $ this -> routeRenderer -> render ( $ route [ 1 ] , $ route [ 0 ] ) ; }
Renders the page with the given controller name.

@param string $controllerName Name of the controller
Renders the page with the given controller name .