The AclBehavior is pretty confusing for a newb. I understand that it is used for parent/child relationships. I assume that I need to set User.group_id to a value when a user registers. I want the default group to be Members, which has an id of 3. So, in my register controller, I put:
$this->data['User']['group_id'] = 3 However, I don't know if this is the best solution. On May 22, 7:19 am, "dr. Hannibal Lecter" <[email protected]> wrote: > Take a look at the AclBehavior: > > http://book.cakephp.org/view/545/Using-the-AclBehavior > > On May 21, 6:49 pm, nic <[email protected]> wrote: > > > Can someone inform me of the best way to set a default group for a new > > user? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
