/** * @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; }
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()); }