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
没有评论:
发表评论