Hi,
I'm trying to make use of the multiFile option for the Form_Element_File
component, but having a bit of trouble. In all my forms so far, I've used
array('Label', 'ViewHelper', 'Errors') with setElementDecorators() at the
end of adding elements to the form, and it's worked just fine (including
with individual type='file' elements), but with multiFile set, I still
just get the one input actually rendered. I did a bit of digging, and it
seems that the specific File decorator isn't being used, I just assumed
ViewHelper would work that out, but seemingly not. Firstly then, is there
anyway I can tell the form/element at the time of adding the multiFile
that I want to set some decorators, and not have them over-written by a
call to setElementDecorators later on?
Second, it seems that the File decorator is losing the content of any
other decorators its used alongside (Label and Errors, for example).
Looking at the code, it's only returning its own markup, and there's no
reference to $content after its passed in - should it not be doing the
append/prepend logic that the other decorators seem to?
Greg.
- [fw-general] Form_Decorator_File issues with multiFile Greg Jones
-