title: ZF2 rendering subforms in fieldset
body: <p>In Zend Framework 1 I did the following to render a subform in a fieldset:</p>
  
  <pre><code>$row = new Application_Form_Row();
  $row-&gt;addDecorator('Fieldset');
  $this-&gt;addSubForm($row, 'row['. $i . ']');
  </code></pre>
  
  <p>The individual 'row' subforms where then rendered in a fieldset and because of the pseudo array notation of the subform names (row[1], row[2], etc), the posted form data was neatly obtained as an array.</p>
  
  <p>In ZF2 I can only do the rendering at the end, in my view script, with (custom) view helpers and perhaps partial view scripts.</p>
  
  <p>As far as I can see the only way to render my (unknown number of) subforms is to loop through them in my view script.</p>
  
  <p>How can I get my subforms in my view script as an array (or object) to loop through?</p>