title: Zend Select Element not working
body: <p>I have the following Zend_Debug value for Albums and Category in my IndexController: </p>
  
  <pre><code>    array(4) {
    ["id"] =&gt; string(1) "1"
    ["artist"] =&gt; string(18) "Paula Abdul Rashid"
    ["title"] =&gt; string(13) "Sunny Side Up"
    ["category_id"] =&gt; NULL
  }
  
  array(10) {
    [0] =&gt; array(2) {
      ["id"] =&gt; string(1) "1"
      ["name"] =&gt; string(7) "Country"
    }
    [1] =&gt; array(2) {
      ["id"] =&gt; string(1) "2"
      ["name"] =&gt; string(7) "Hip Hop"
    }
    [2] =&gt; array(2) {
      ["id"] =&gt; string(1) "3"
      ["name"] =&gt; string(4) "Jazz"
    }
    [3] =&gt; array(2) {
      ["id"] =&gt; string(1) "4"
      ["name"] =&gt; string(14) "Latin American"
    }
    [4] =&gt; array(2) {
      ["id"] =&gt; string(1) "5"
      ["name"] =&gt; string(3) "Pop"
    }
    [5] =&gt; array(2) {
      ["id"] =&gt; string(1) "6"
      ["name"] =&gt; string(3) "R&amp;B"
    }
    [6] =&gt; array(2) {
      ["id"] =&gt; string(1) "7"
      ["name"] =&gt; string(4) "Rock"
    }
    [7] =&gt; array(2) {
      ["id"] =&gt; string(1) "8"
      ["name"] =&gt; string(3) "Ska"
    }
    [8] =&gt; array(2) {
      ["id"] =&gt; string(1) "9"
      ["name"] =&gt; string(5) "Asian"
    }
    [9] =&gt; array(2) {
      ["id"] =&gt; string(2) "10"
      ["name"] =&gt; string(11) "Modern folk"
    }
  }
  </code></pre>
  
  <p>And in my Form_Albums I have the following form elements :</p>
  
  <pre><code>$id = new Zend_Form_Element_Hidden('id');
          $id-&gt;addFilter('Int');
  
          $artist = new Zend_Form_Element_Text('artist');
          $artist-&gt;setLabel('Artist')
                 -&gt;setRequired(true)
                 -&gt;addFilter('StripTags')
                 -&gt;addFilter('StringTrim')
                 -&gt;addValidator('NotEmpty');
  
          $title = new Zend_Form_Element_Text('title');
          $title-&gt;setLabel('Title')
                -&gt;setRequired(true)
                -&gt;addFilter('StripTags')
                -&gt;addFilter('StringTrim')
                -&gt;addValidator('NotEmpty');
  
          $category = new Zend_Form_Element_Select('category');
          $category-&gt;setLabel('Category')
                  -&gt;setRequired(true);
  
  
          $submit = new Zend_Form_Element_Submit('submit');
          $submit-&gt;setAttrib('id', 'submitbutton');
  
  
  
          $this-&gt;addElements(array($id, $artist, $title, $category, $submit));
  </code></pre>
  
  <p>I couldn't get the dropdownlist display using the Zend_Form_Element_Select..</p>
  
  <p>Update for Solutions:</p>
  
  <p>I got it working now by using the following:</p>
  
  <pre><code>$category = new Application_Model_DbTable_Category();
  $category_list = $category-&gt;findForSelect();
  
  
  foreach ($category_list as $cat) {     //$data is your array variable
      Zend_Debug::dump($cat['id']." :: ". $cat['name']);
      $form-&gt;category-&gt;addMultiOption($cat['id'], $cat['name']);      
  }
  </code></pre>
  
  <p>Thanks to Rishi for opening the idea.</p>