Hi, 
see this page 
http://framework.zend.com/manual/en/zend.form.standardElements.html, '23.6.9. 
Zend_Form_Element_Multiselect', you can see there is a method addMultiOptions() 
where you can pass an array of options. You don't need to do a foreach in your 
view, you can fetch your data in your controller and assign it. You can also  
create you custom form with the element already filled.
Bye

Sergio Rinaudo



Date: Sun, 24 May 2009 15:32:39 +0200
From: [email protected]
To: [email protected]
Subject: [fw-general] Zend_Db_Table_Rowset and formSelect view helper

Hi.

Is there any way to integrate this 2? I have models, and fetchAll is returning 
Zend_Db_Table_Rowset, it would be nice if i can fill select boxes with this 
data without foreach in my views.
Regards,

Saša Stamenković

_________________________________________________________________
Più di 100 Emoticon gratis per il tuo Messenger!
http://intrattenimento.it.msn.com/emoticon

Reply via email to