ZF-8413: Output view filter applied twice

Issue Type: Bug Created: 2009-11-28T06:22:46.000+0000 Last Updated: 2012-05-30T04:46:39.000+0000 Status: Open Fix version(s): Reporter: Gabor Ivan (gixx) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Layout

  • Zend_View

Related issues: Attachments:


layout()->content; ?>


Posted by Thomas Weidner (thomas) on 2009-11-28T08:03:02.000+0000

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

Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-11-28T08:19:35.000+0000

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.

Posted by Kazuo KASHIMA (k4200) on 2012-05-30T04:46:39.000+0000

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')) {

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.