Sub-sub forms

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Sub-sub forms

darkangel
This post was updated on .
Hi,

How do I get $form->getValues() to return data in this format:

$event = array(
    'name',
    'stages' => array(
        0 => array(
           'name',
           'groups' => array()
        ),
        1 => array(
            'name'
            'groups' => array(
                0 => array('name'),
                1 => array('name')
        )
    )
)

i.e. Event > Stages > Groups

If I do something like:

$stageSubform->setElementsBelongTo('stages[0]');
$groupSubform->setElementsBelongTo('groups[0]');

getValues() ends up returning something like: $event[stages][0][stages][0][groups][0] instead of $event[stages][0][groups][0].

Glen.
Reply | Threaded
Open this post in threaded view
|

Re: Sub-sub forms

artsylar
This post has NOT been accepted by the mailing list yet.
Were you able to solve this issue?
Reply | Threaded
Open this post in threaded view
|

Re: Sub-sub forms

darkangel
I honestly can't remember. I've commented on your Stack Overflow post.