I am new in zend framework. I want to populate company name and company id from database to select box. in zend
example as we do it PHP
<option value="<?php echo id ?>" > <?php echo $comapnyName ?>
this is my form
$this->addElement('select', 'companyName', array(
'required' => true,
'filters' => array('StringTrim'),
'style' => array('width:103px'),
'decorators'=> array(
'ViewHelper','Errors'
)
));
help me