-- Ralf Eggert <[email protected]> wrote (on Thursday, 22 October 2009, 09:49 PM +0200): > > Actually, better: extend Zend_Form and override filterName() in your > > extending class. > > That is no problem at all. But since Zend_Form_Element has the identical > filterName() method I would need to extend Zend_Form_Element as well and > overwrite the filterName() method. This would mean that I need to > extend every class that is based on Zend_Form_Element:
<snip> > and as well the Dijit-specific form elements as well. Or am I wrong with > this assumption? > > I would rather kick the filterName() method from Zend_Form, > Zend_Form_Element and Zend_Form_DisplayGroup and use a Zend_Filter class > instead. As noted, we can't exactly change this now for reasons of backwards compatibility, and adding a filter chain/filter to each class type is problematic as it adds additional complexity to an already complex component. If you can indicate a relatively simple and straightforward way to accomplish this, please open a feature request in the issue tracker. -- Matthew Weier O'Phinney Project Lead | [email protected] Zend Framework | http://framework.zend.com/
