src/Vectorface/SnappyRouter/Controller/AbstractController.php
public function renderView($viewVariables, $template)
    {
        $encoder = $this->handler->getEncoder();
        if (method_exists($encoder, 'renderView')) {
            return $encoder->renderView(
                $template,
                array_merge($this->viewContext, (array)$viewVariables)
            );
        } else {
            throw new Exception('The current encoder does not support the render view method.');
        }
    }
public function renderView($viewVariables, $template)
    {
        $encoder = $this->handler->getEncoder();
        if (method_exists($encoder, 'renderView')) {
            return $encoder->renderView(
                $template,
                array_merge($this->viewContext, (array)$viewVariables)
            );
        } else {
            throw new Exception('The current encoder does not support the render view method.');
        }
    }
public function renderView ( $ viewVariables , $ template ) { $ encoder = $ this -> handler -> getEncoder ( ) ; if ( method_exists ( $ encoder , 'renderView' ) ) { return $ encoder -> renderView ( $ template , array_merge ( $ this -> viewContext , ( array ) $ viewVariables ) ) ; } else { throw new Exception ( 'The current encoder does not support the render view method.' ) ; } }
Renders the view for the given controller and action.
@param array $viewVariables An array of additional parameters to add
to the existing view context.
@param string $template The name of the view template.
@return Returns the rendered view as a string.
Renders the view for the given controller and action .