|
To patch directly into Zend_View_Abstract: Index: library/Zend/View/Abstract.php
===================================================================
--- library/Zend/View/Abstract.php (revision 20351)
+++ library/Zend/View/Abstract.php (working copy)
@@ -221,6 +221,11 @@
$this->setLfiProtection($config['lfiProtectionOn']);
}
+ // Doctype
+ if (array_key_exists('doctype', $config)) {
+ $this->doctype($config['doctype']);
+ }
+
$this->init();
}
|
|||||||||||||||||||||||||||||||||||
The obvious patch is:
Index: library/Zend/Application/Resource/View.php =================================================================== --- library/Zend/Application/Resource/View.php (revision 20348) +++ library/Zend/Application/Resource/View.php (working copy) @@ -46,6 +46,11 @@ { $view = $this->getView(); + $options = $this->getOptions(); + if (isset($options['doctype'])) { + $view->doctype($options['doctype']); + } + $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer(); $viewRenderer->setView($view); Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);