Using Zend_Form, how would I create form elements like this:
<input type="text" name="element[1]" value="" />
<input type="text" name="element[2]" value="" />
// etc...
Using Zend_Form, how would I create form elements like this:
<input type="text" name="element[1]" value="" />
<input type="text" name="element[2]" value="" />
// etc...
You can either use subforms:
Or you should also be able to use
setBelongsTo()
on the form elements (untested):I contend that
setBelongsTo
is of substandard quality, as one is unable to set default values. And so, at the present time, there's no reasonable way to achieve your objective.