Get the view

@return Zend_View_Interface
168038
public function getView()
    {
        $controller = $this->getActionController();
        if (null === $controller) {
            $controller = $this->getFrontController();
        }

        return $controller->view;
    }
92014
public function getView()
    {
        if (!isset($this->view) || !($this->view instanceof \Osf\View\OsfView)) {
            throw new ArchException('This trait must be used in a view context');
        }
        return $this->view;
    }
1153006
protected function getViewName()
    {
        $name = $this->request->getAttribute(self::VIEW);
        return $this->prefix . $name;
    }
1216701
public function render()
    {
        Merchant::script($this->script);

        return view($this->getView(), $this->variables());
    }
885265
protected function _initView()
    {
        $this->bootstrap('project');

        // Initialize view
        $view = new \Zend_View();
        $view->addHelperPath('MUtil/View/Helper', 'MUtil_View_Helper');
        $view->addHelperPath('MUtil/Less/View/Helper', 'MUtil_Less_View_Helper');
        $view->addHelperPath('Gems/View/Helper', 'Gems_View_Helper');
        $view->addScriptPath(GEMS_LIBRARY_DIR . '/views/scripts');
        $view->headTitle($this->project->getName());
        $view->setEncoding('UTF-8');

        $metas    = $this->project->getMetaHeaders();
        $headMeta = $view->headMeta();
        foreach ($metas as $httpEquiv => $content) {
            $headMeta->appendHttpEquiv($httpEquiv, $content);
        }

        if ($this->useHtml5) {
            $view->doctype(\Zend_View_Helper_Doctype::HTML5);
        } else {
            $view->doctype(\Zend_View_Helper_Doctype::XHTML1_STRICT);
        }

        // Add it to the ViewRenderer
        $viewRenderer = \Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
        $viewRenderer->setView($view);

        // Return it, so that it can be stored by the bootstrap
        return $view;
    }
644842
public function getHtmlOutput(\Zend_View_Abstract $view) {
        //$view->headLink()->prependStylesheet($view->serverUrl() . \GemsEscort::getInstance()->basepath->getBasePath() . '/gems/css/barchart.less', 'screen,print');

        $htmlDiv   = \MUtil_Html::create()->div(' ', array('class'=>'barchartcontainer'));

        if ($this->showHeaders) {
            if (isset($this->token)) {
                $htmlDiv->h3(sprintf($this->_('Overview for patient number %s'), $this->token->getPatientNumber()));

                $htmlDiv->pInfo(sprintf(
                        $this->_('Overview for patient number %s: %s.'),
                        $this->token->getPatientNumber(),
                        $this->token->getRespondentName()))
                        ->appendAttrib('class', 'noprint');
            } else {
                $htmlDiv->pInfo($this->_('No data present'));
            }
        }

        if (!empty($this->data)) {
            $htmlDiv->append($this->getChart());     // Insert the chart here
        }


        if ($this->showButtons) {
            $buttonDiv = $htmlDiv->buttonDiv();
            $buttonDiv->actionLink(array(), $this->_('Back'), array('onclick' => 'window.history.go(-1); return false;'));
            $buttonDiv->actionLink(array(), $this->_('Print'), array('onclick' => 'window.print();'));
        }

        // Make vertically resizable
        $view = \Zend_Layout::getMvcInstance()->getView();
        /*$jquery = $view->jQuery();
        $jquery->enable();*/
        \MUtil_JQuery::enableView($view);

        // We need width 100% otherwise it will look strange in print output
        $view->jQuery()->addOnLoad("$('.barchart').resizable({
            handles: 's',
            resize: function( event, ui ) { ui.element.css({ width: '100%'}); },
            minHeight: 150
            });");

        return $htmlDiv;
    }
689006
public function view()
    {
        ob_start();
        $form = $this;
        require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'view' . DIRECTORY_SEPARATOR . 'form.php';
        $html = ob_get_clean();
        return $html;
    }
925893
public function getView(): View
    {
        $path = $this->useShortViewPath ?
            $this->getViewPath() : sprintf('%s.%s.%s', $this->getTheme(), $this->getLayout(), $this->getViewPath());

        if (is_null($this->viewInstance)) {
            $this->viewInstance = $this->factory->make($path);
        }

        return $this->viewInstance;
    }
1129222
public function showInputView()
	{
        $template=$this->parent->templateFilePath('View');
        if( !file_exists($template) ){
            $this->parent->showView();
        }
        
        if($this->element->getId()){
            $nextStep = $this->encodeURL('makeSelection', array($this->element->getId()));
            $href = htmlentities(
					$this->element->encodeURL(
							array(),
							'showUpdate',
							array(
								'',
								$this->element->encodeURL(
										array(),
										'processUpdate',
										array($nextStep)
								)
							)
					)
			);
			return '<div class="SimplOn actions">
                        <a class="SimplOn lightbox" href="'.$href.'">Edit</a>
                        <a class="SimplOn delete" href="#">X</a>
                    </div>
                    <div class="SimplOn view">'.$this->element->showView($template, true).'</div>
            ';
        }else{
            return '';
        }
	}
957933
public function render()
    {
        if ($this->showAs->isNotEmpty()) {
            $this->showAs->each(function ($callable) {
                $this->value = $callable->call(
                    $this->parent->getModel(),
                    $this->value
                );
            });
        }

        return view($this->view, $this->variables());
    }
1118197
public function view()
    {
        $this->reflectionParams('query');
        $query = call_user_func_array([$this, 'query'], $this->arguments);
        $this->post = new Repository($query);

        return view('platform::container.layouts.base', [
            'screen'    => $this,
        ]);
    }
834802
public function setView(\Zend_View_Interface $view = null) {
        if (null !== $view) {
            if (false === $view->getPluginLoader('helper')->getPaths('CKEditor_View_Helper')) {
                $view->addHelperPath('CKEditor/View/Helper', 'CKEditor_View_Helper');
            }
        }

        if (!file_exists($this->basePath . '/ckeditor.js')) {
            throw new \Zend_Exception('Use setBasePath() to set the full path to the file ckeditor.php in the public folder of ckedit.');
        }

        return parent::setView($view);
    }
593986
public function getViewPath()
    {
        if ($this->module instanceof Module) {
            if ($this->module->useAppViewPath) {
                return '@app/views/' . $this->module->id . '/' . $this->id;
            } elseif (is_array($this->module->viewMap)) {
                $currentAction = $this->id . '/' . ($this->action ? $this->action->id : $this->defaultAction);
                foreach ($this->module->viewMap as $action => $viewPath) {

                    // Special case for map all views of controller
                    if ($action === '*') {
                        return $viewPath . '/' . $this->id;
                    } elseif (fnmatch($action, $currentAction)) {
                        return $viewPath;
                    }
                }
            }
        }

        return parent::getViewPath();
    }
255707
public function getForm()
    {

        $view = new View();

        return $view->render(__DIR__ . '/../views/ulogin', [
            'widget' => $this->widget,
            'fields' => $this->requiredFields,
            'optional' => $this->optionalFields,
            'providers' => $this->requiredProviders,
            'hidden' => $this->hiddenProviders,
            'url' => $this->url
        ]);

    }
1012068
public function getView()
    {
        if(!$this->_view instanceof ViewInterface)
        {
            //Make sure we have a view identifier
            if(!($this->_view instanceof ObjectIdentifier)) {
                $this->setView($this->_view);
            }

            //Create the view
            $config = array(
                'url'        => clone $this->getObject('request')->getUrl(),
                'layout'     => $this->getRequest()->getQuery()->get('layout', 'identifier'),
            );

            $this->_view = $this->getObject($this->_view, $config);

            //Make sure the view implements ViewInterface
            if(!$this->_view instanceof ViewInterface)
            {
                throw new \UnexpectedValueException(
                    'View: '.get_class($this->_view).' does not implement ViewInterface'
                );
            }
        }

        return $this->_view;
    }
274131
public function getView($view) {
		$path = explode("/", $view);
		include (count($path) > 1) ? "src/views/" . $path[0] . "/" . $path[1] . ".php" : "src/views/" .$path[0] . "/index.php";
	}
1338762
public function getView() : View
    {
        if (empty($this->view)) {
            $this->setView(new AppView());
        }

        return $this->view;
    }