title: How can I populate more than one zendform?
body: <p>I'm a problem about the population of many zend forms. Let me explain: I need to modified more users at the same time and I wanted to show in a view one populated form (with the old data to modify) for every user that I preaviously selected.
  I have this code in my controller:   </p>
  
  <pre><code>$list = $this-&gt;getRequest()-&gt;getParam('utenti');
  $users=$this-&gt;_adminModel-&gt;getUsersByName($list);
  $data=array();
  foreach ($users as $user) {
  $i=0;
  $data[$i]=array(
  'nome'=&gt;$user-&gt;nome, 
  'cognome'=&gt;$user-&gt;cognome,
  'email'=&gt;$user-&gt;email,
  'genere'=&gt;$user-&gt;genere,
  'nascita'=&gt;$user-&gt;nascita,
  'username'=&gt;$user-&gt;username,
  'passwd'=&gt;$user-&gt;passwd,
  'ripasswd'=&gt;$user-&gt;passwd,
  'impiego'=&gt;$user-&gt;impiego,
  'fumatore'=&gt;$user-&gt;fumatore,
  'telefono'=&gt;$user-&gt;telefono,
  'role'=&gt;$user-&gt;role);
  $i++;
  $this-&gt;view-&gt;data= $data;}
  </code></pre>
  
  <p>In the wiew, instead I have:</p>
  
  <pre><code>&lt;? foreach($this-&gt;data ad $data){
  echo $this-&gt;myform-&gt;populate($data);
  }?&gt;
  </code></pre>
  
  <p>The error that I have is:
  Warning:Invalid argument supplied for foreach in myview.phtml.
  Where am I wrong?? </p>