Hi

I've been experimenting a bit with ACL today for an upcoming project.
Messed around a bit with a simple scaffold and found to my surprise
that acl automatically creates an aro when i add a group. It also
automatically deletes it when i delete one of my groups.

The only thing I've done so far is included (var $components =
array('Acl');) the component in the controller and added this to my
model (var $actsAs = array('Acl'=>'requester');)

However it doesn't set any label and as far as I've understood so far
that is quite convenient to have. Any idea how to set it?

When I call this it just creates a second aro:

$aro = new aro();
$aro->create();
$aro->save(
'model'=>'Group',
'foreign_key'=>null,
'parent_id'=>null,
'alias'=>$this->data['Group']['name']);

Using CakePHP 1.2.0.6311 and PHP5 although I doubt the php version do
any difference in this case.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to