2008年8月27日星期三

Re: [fw-core] Zend_Form_Element 'name' and brackets.

On Wed, Aug 27, 2008 at 16:23, Matthew Weier O'Phinney <matthew@zend.com> wrote:
>
> -- Paweł Chuchmała <pawel.chuchmala@gmail.com> wrote
>
> > Problem is that Zend_Form_Element call filterName with 'allowBrackets' = flase.
> > Why?
> > For Zend_Form_Element_Multicheckbox brackets are allowed, so why not for all
> > elements?
>
> Set the "isArray" property of the element:
>
> $element->setIsArray(true);
>
> This will append [] to the name.

Ok, but if i want not only name[], but: name[12], name[43] ?

--
Paweł Chuchmała
pawel.chuchmala at gmail dot com

没有评论: