2009年5月29日星期五

[fw-mvc] Zend_Form_Select array notation ...

hello,


How can I setup Zend_Form_Select from array notation ?
I'm using ZF 1.8

I need this because I generate my form from database metas.

Using the code below but unfortunately it doesn't works. It consider
'options' as items of the list ...

...

$formConfig['elements']['list'] = array(
'type' => 'select',
'options' => array(
'multiOptions' => $options,
'label' => $columnName
)
);
...

new Zend_Form($formConfig);

thank you for your help
regards

没有评论: