2009/10/22 Ralf Eggert <[email protected]>: > Hi, > > I have some problems with the methods Zend_Form::filterName() and > Zend_Form_Element::filterName(). Both are identical which is not such a > big deal. But they both filter the - out of form and element names. > > Why are - filtered from the names? > > I do need the - for some fields but it is hard to overwrite this method. > Since I would need to extend all form element classes I am using and > need to overwrite the Zend_Form_Element::filterName(). It would be quite > easier if there is only one filterName() method which is used both by > form and element objects. > > Has any one any idea how to handle this? > > Thanks and best regards, > > Ralf >
Somebody will correct me if I'm wrong but I think it filters out the - because the filtered value must be a valid php variable identifier. -- Regards, Martin Martinov http://mmartinov.com/
