Hi, I'm trying to find a way to guess all Acs for a given Aro in Acl.
I tried this approach (in a controller, with Acl component) // get node and all parents $aro = new Aro(); $node = $aro->node(array('model' => 'Group', 'id' => 7); // extract id's $ids = Set::extract($node, '{n}.Aro.id'); $conditions = array('id' => $ids); // Find all Aros with that id, this will bring associated Aco $data = $this->Acl->Aro->find('all', $conditions); // Extract Aco from the array (Privilege is the model for the Acos I want to retrieve) $prueba = Set::extract($data, '/Aco[model=Privilege]'); It seems a bit inefficient. I would like to hear some suggestions. -- Fran Iglesias [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---