original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Initialize the view component and sets some project specific values.
  
  Actions taken here can take advantage that the full framework has
  been activated by now, including session data, etc.
  
  Use $this->view to access afterwards
  
  @return \Zend_View
docstring_tokens: Initialize the view component and sets some project specific values .