2008年12月4日星期四

FW: [fw-mvc] Zend_Form_Element_Text and array

Hi,

I'm afraid, you'll need to create a subform and use its method setIsArray().

There is aplhanumeric filter applied on the element name.

Regards
Jiří Helmich

-----Original Message-----
From: SŽébastien Cramatte [mailto:scramatte@zensoluciones.com]
Sent: Thursday, December 04, 2008 1:24 AM
To: fw-mvc@lists.zend.com
Subject: [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

没有评论: