The manual states: http://framework.zend.com/manual/en/zend.form.standardElements.html

"File elements in Subforms
When you use file elements in subforms you must set unique names. For example, if you name a file element in subform1 "file", you must give any file element in subform2 a different name.

If there are 2 file elements with the same name, the second element is not be displayed or submitted.

Additionally, file elements are not rendered within the sub-form. So when you add a file element into a subform, then the element will be rendered within the main form.


"

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message ----- From: "Abraham Block" <[email protected]>
To: "Zend Framework General" <[email protected]>
Sent: Sunday, October 18, 2009 7:08 AM
Subject: [fw-general] Zend_Form_Element_File and Subforms with array notation


I've noticed that the File decorator ignores the fully qualified name for
the element, which rids me of the array notation. When I attempted to change
the code from $name      = $element->getName(); to $name      =
$element->getFullyQualifiedName();My form doesn't validate anymore.


Reply via email to