I found something but I'm not sure if it's correct:
$aro = $this->Acl->Aro;
$tree = $aro->behaviors["Tree"];
for a parent:
$tree->setup($aro,array("parent" => "Aro.id")); // just "id"
doesn't work
$aro-
>save(array('model'=>'Roles','foreign_key'=>'0','alias'=>'Parent'));
for children:
$tre
I just went through this myself... have you looked at the sample in
the manual (http://manual.cakephp.org/chapter/acl) ?
I found that it describes what you need to do pretty well and from the
look of it you might be missing a step.
cheers
On Feb 23, 3:17 pm, "scragz" <[EMAIL PROTECTED]> wrote
I'm having some issues getting ACL working in the 1.2 branch. I think
I'm finally pretty close and was wondering how to properly save a tree
model. I have, so far:
$acl->Aro->create(array('model' => 'Role', 'foreign_key' => 1,
'parent_id' => 0, 'alias' => 'foo'));
$acl->Aro->save();
Outputs:
1