2008年12月3日星期三

[fw-mvc] Zend_Form_Element_Text and array

Hi,

I need to create 2 Zend_Text_Element using array as name

new Zend_Text_Element('sn[0]');
new Zend_Text_Element('sn[1]');

The main idea is to have possibility to populate these fields with
structure like this (I'm using Zend_Form with LDAP ...)

$data = array (
givenName => 'firstName',
sn => array ('lastname1', 'lastname2')
);

I've tried to set ID or name of the field but doesn't works ...

Thank your for your help

没有评论: