I am new to zend framework. I want to call option values in select box dynamically in view file without using zend form. Please help
MY OLD CODE
$txtCategory = new Zend_Form_Element_Select('category');
$txtCategory->setLabel('Category')
->setRequired(true);
$table = new Application_Model_DbTable_Category();
foreach ($table->getcategory() as $c) {
$txtCategory->addMultiOption($c->ExpenseCategoryID, $c->Category);
}
My categories are in select box.