public static function render($view, array $context = [], $type = null)
    {
        $viewBuilder = static::getViewBuilder();
        $viewObject  = $viewBuilder->create($view, $type);

        return $viewObject->render($context);
    }
public static function render($view, array $context = [], $type = null)
    {
        $viewBuilder = static::getViewBuilder();
        $viewObject  = $viewBuilder->create($view, $type);

        return $viewObject->render($context);
    }
public static function render ( $ view , array $ context = [ ] , $ type = null ) { $ viewBuilder = static :: getViewBuilder ( ) ; $ viewObject = $ viewBuilder -> create ( $ view , $ type ) ; return $ viewObject -> render ( $ context ) ; }
Render a view for a given URI.

@since 0.1.0

@param string      $view    View identifier to create a view for.
@param array       $context Optional. The context in which to render the view.
@param string|null $type    Type of view to create.

@return string Rendered HTML content.
@throws FailedToProcessConfigException If the Config could not be processed.
Render a view for a given URI .