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?

My users table looks like:
CREATE TABLE `users` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `username` varchar(20) NOT NULL default '',
  `password` varchar(40) NOT NULL default '',
  `email` varchar(50) default NULL,
  `created` datetime default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;

and the action looks like
    function signup()
    {
        if (!empty($this->data))
        {
            if ($this->User->save($this->data))
            {
                $this->flash('Grattis! Nu är du medlem.', '/users/
login');
            }
        }
    }

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)

Regards,
Andreas


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