I’m creating a website in which I have an array of sub forms to display. I’ve fiddled around with Zend_Form::setIsArray(true) but apart from the fact that I cannot really grasp what exactly it does, I have the feeling this isn’t what I’m looking for anyway.
This is more or less what I had in mind;
<form>
<form id="Paragraph[0]">
<input name="Paragraph[0]['text']" type="text">
<input name="Paragraph[0]['heading']" type="text">
</form>
<form id="Paragraph[1]">
<input name="Paragraph[1]['text']" type="text">
<input name="Paragraph[1]['heading']" type="text">
</form>
</form>
EDIT: I might be better off using <fieldset>s rather than nested forms. Is this the case?
With subforms, you can do this:
Then, you’ll have :
Look at the doc here : http://framework.zend.com/manual/fr/zend.form.advanced.html