Hi,

I am using the Tree behaviour for a model object Group. I have a form
that has no problem creating me new root level nodes with a name. Now
I want to be able to create a sub-group. To do this, I am calling a
URL /groups/add/2 where 2 is the parent_id field for the new group
node.

Where I am getting stuck is getting this parent id into the add form
so that when I post it, it is set on the new Group.

When I first call /groups/add/2 I see parentId as the first argument
to the GroupsController->add($parentId) function. But I do not know
how to get it to the view, specifically using the FormHelper->input
function to write the value to a hidden field or something so that it
becomes part of the FormHelper->create("Group") that I am doing to
persist new Group objects.

No matter what I try I just can't seem to set it on the inbound post
for the new group.

Any tips appreciated

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to