2009年9月11日星期五

Re: [fw-mvc] Array notation and ZendSubforms

-- Cristian Bichis <contact@zftutorials.com> wrote
(on Friday, 11 September 2009, 02:27 PM +0300):
> Anyone knows why if i set a subform name to 0, the output html into array
> notation looks like:
>
> form[]
> instead of
> form[0]
> ?
>
> This makes lot of problems sometime... I am not sure if is a bug or not...

All subform, display group, and element names must be valid PHP variable
names; integer names do not work.

I'll be rethinking this design decision for 2.0, but for now, that's
simply the way it works.

--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: