Issue Type: Improvement Created: 2010-04-20T09:24:16.000+0000 Last Updated: 2010-04-20T10:17:21.000+0000 Status: Postponed Fix version(s): Reporter: Carl Helmertz (chelmertz) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_View
Related issues: Attachments:
I would like the method Zend_View::addFilter() to accept anything inheriting Zend_Filter_Interface because a filters' dependencies should not be hidden inside of Zend_View.
As it is now, I can not seem to add an instance of my own filter to be used while rendering the view, but I have to filter the rendered view. This approach is a bit backwards especially since Zend_View is supposed to support filters.
Bypass the dynamic loading of Zend_View::addFilter() if passed anything implementing Zend_Filter_Interface ..or Remake the signature of Zend_View::addFilter() to accept constructor injection like: bq.$view->addFilter(array('My_Filter' => array('aConstructorOption' => 3, 'anotherOption' => 5)));
Posted by Matthew Weier O'Phinney (matthew) on 2010-04-20T09:40:14.000+0000
Postponing until 2.0.
Posted by Thomas Weidner (thomas) on 2010-04-20T10:17:20.000+0000
Reverting Zend_Filter as problem causing component Issue is related to Zend_View
Have you found an issue?
See the Overview section for more details.