-- Simon Mundy <[EMAIL PROTECTED]> wrote
(on Friday, 14 March 2008, 02:07 PM +1100):
> I wanted to know if this is a known issue, or an expected behaviour (or
> neither?!)
>
> I'm creating a form composed of a subform and a submit element. The idea is to
> create a long list of skills that are returned in array notation so I can more
> easily aggregate the results and store in a database. So the subform works
> well
> for this. However I also wanted to use the display group feature within the
> subform to group sub-categories together to make the form more readable. The
> expected output should be:-
I know exactly where this is going -- somebody reported it on #zftalk
yesterday, and I was able to confirm it:
http://framework.zend.com/issues/browse/ZF-2883
Basically, when you have a display group *within* a sub form, the sub
form's name is not pushed into the elements, and as a result, they are
not namespaced properly.
Until I get a fix in, you can "correct" for it by explicitly calling the
following on all elements of such a display group:
$element->setBelongsTo(<subformname>);
I've scheduled this for 1.5.1, as it's only going to affect a subset of
users.
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/