title: Display values in array field | admin generator edit form | Symfony 1.4
body: <p>I have a class with the property "homepages" where urls are stored in an array. Now I want to create an admin form to edit this field, but I don't get it to display the stored values or to accept adding a new value to the property. All I get is an empty form field. </p>
  
  <p>To simply display the values in a partial is easy with the code below, but how do I get it to render the input field with all the previously stored values?</p>
  
  <pre><code>&lt;div class="sf_admin_form_row"&gt;
  &lt;label&gt;
      &lt;?php echo $form['homepages']-&gt;renderLabel('homepages') ?&gt;
  &lt;/label&gt;
  &lt;?php foreach(sfOutputEscaper::unescape($form-&gt;getObject()-&gt;getHomepages()) as    $key=&gt;$value): ?&gt;
  &lt;div class="content"&gt;&lt;?php echo $value ?&gt;&lt;/div&gt;
  &lt;?php endforeach ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Any help will be much appreciated.</p>