in Cake 1.2, I need some clarifications on ACL:

In the following code segment:

 $aro->create();
    $aro->save(array(
      'model'=>'User',
      'foreign_key'=>null,
      'parent_id'=>null,
      'alias'=>'Admin'));
1) what does the model refer to?
2) foreign key?
3) do we need to specify the "id"? My suspicion is "no", since it is an
auto-increment column, and is used to index the rows in the ARO. Correct me
if I am wrong.

I have a user registration database where I have a table Users with primary
key id (int). for the "alias" in my ARO, should the alias be the id of the
Users table then? For the "foreign_key", should this refer to the id of the
Users table?

Thanks in advance

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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