title: Zend Framework: Populating DB data to a Zend Form dropdown element
body: <p>I have the following form:</p>
  
  <pre><code>&lt;?php
  class Application_Form_RegistrationForm extends Zend_Form{
  
      public function init(){
  
          $country = $this-&gt;createElement('select', 'country');
          $country-&gt;setLabel('country: ')
                  -&gt;setRequired(true);
  
  
          $email = $this-&gt;createElement('text', 'email_address');
          $email-&gt;setLabel('Email Address: ')
                  -&gt;setRequired(true);
  
          $register = $this-&gt;createElement('submit', 'register');
          $register-&gt;setLabel('Create new Account')
                  -&gt;setIgnore(true);
  
          $this-&gt;addElements(array(
              $country, $email, $register
          ));
  
  
  
  
      }
  
  }
  
  ?&gt;
  </code></pre>
  
  <p>The list of the countries are present in a table <code>country</code> in a database. </p>
  
  <p>Is there anyway I can populate the country dropdown list with the country names from the database?</p>
  
  <p>Any help is appreciated.</p>
  
  <p>Thanks</p>