On 7/1/07, Andreas <[EMAIL PROTECTED]> wrote:
>
>
> I'm using CakePHP 1.1 with phpGACL. I've only tried out Cake for the
> last days and now I've finally got an sign up form to work as
> expected. But how do I update the corresponding phpGACL tables when a
> new user signs up?


[..snip..]

phpGACL being pretty extensive I'm sure there has to be an easy way of
> doing this? (Besides manually using the  Import Groups / Users
> function)


The way I do it is to use the methods provided by the PhpGacl component. eg:

function add_user()
{
       // do stuff in your app to add the user.. then:
       $this->PhpGacl->saveUser( $this->User->getLastInsertID(),
$fullUsersName, false );
}

You should look at the code in the component to find out what other methods
you can use (delete user from PhpGacl, etc).

- Gonzalo

--~--~---------~--~----~------------~-------~--~----~
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