source/Setup/Controller.php
protected function setViewOptions($templateFileName, $titleId, $viewOptions)
    {
        $view = $this->getView();
        $view->setTemplateFileName($templateFileName);
        $view->setTitle($titleId);

        foreach ($viewOptions as $optionKey => $optionValue) {
            $view->setViewParam($optionKey, $optionValue);
        }
    }
protected function setViewOptions($templateFileName, $titleId, $viewOptions)
    {
        $view = $this->getView();
        $view->setTemplateFileName($templateFileName);
        $view->setTitle($titleId);

        foreach ($viewOptions as $optionKey => $optionValue) {
            $view->setViewParam($optionKey, $optionValue);
        }
    }
protected function setViewOptions ( $ templateFileName , $ titleId , $ viewOptions ) { $ view = $ this -> getView ( ) ; $ view -> setTemplateFileName ( $ templateFileName ) ; $ view -> setTitle ( $ titleId ) ; foreach ( $ viewOptions as $ optionKey => $ optionValue ) { $ view -> setViewParam ( $ optionKey , $ optionValue ) ; } }
Allows to set all necessary view information with single method call.

@param string $templateFileName File name of template which will be used to pass in the context data.
@param string $titleId          Title Id which will be used in the template.
@param array  $viewOptions      An array containing all view elements to be used inside a template.
Allows to set all necessary view information with single method call .