Ejemplo n.º 1
0
 /**
  * @author slovacus
  * @return type
  */
 public function getView()
 {
     $this->_view = parent::getView();
     if (null === $this->_view) {
         $options = $this->getOptions();
         $view = new Zend_View();
         $view->headTitle($options['title']);
         $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
         $viewRenderer->setView($view);
         $this->_view = $view;
     }
     return $this->_view;
 }
Ejemplo n.º 2
0
 public function testDoctypeIsSet()
 {
     $options = array('doctype' => 'XHTML1_FRAMESET');
     $resource = new Zend_Application_Resource_View($options);
     $resource->init();
     $view = $resource->getView();
     $this->assertEquals('XHTML1_FRAMESET', $view->doctype()->getDoctype());
 }