ZF-8413: Output view filter applied twice


<?php echo $this->layout()->content; ?>


Detaching Zend_Filter from the affected components. Zend_Filter is not the reason why filters are applied twice.

Since both the view Zend_App resource plugin as well as the layout resource plugin only pass the options on to resp. Zend_View and Zend_Layout, this is not a bug in Zend_Application_Resource_Layout. Therefore I'm -deassigning (why does my spellchecker not recognize that word?)- revoking the zend_application_resouce component and myself as assignee.

For those looking for a fix, here's a quick patch. Tested briefly in ZF 1.11.10 I'm pretty new to ZF, so there should be a better way.

--- Zend/ 2012-05-30 13:31:21.207926764 +0900 +++ Zend/Layout.php 2012-05-30 13:31:23.843942826 +0900 @@ -782,6 +782,7 @@ }

     $view = $this->getView();

+ $view->setFilter(null);

     if (null !== ($path = $this->getViewScriptPath())) {
         if (method_exists($view, 'addScriptPath')) {