Re: Using Auth component with two different models

2013-04-24 Thread Irvin Huang
sorry, let me correct, it should be: AuthComponent::$sessionKey = 'Auth.YourModelName'; 2013/4/23 Irvin Huang > set the userModel > and set $sessionKey as > $sessionKey = 'Auth.YourModelName'; > > then you can separate your log-in sessions and login with models > respectively. > > > > 2013/4/23

Re: Using Auth component with two different models

2013-04-24 Thread Irvin Huang
set the userModel and set $sessionKey as $sessionKey = 'Auth.YourModelName'; then you can separate your log-in sessions and login with models respectively. 2013/4/23 Alex Bovey > On Fri, Apr 19, 2013 at 4:39 PM, Alex Bovey wrote: > > Hi all, > > > > What's the best technique to use if I have

Re: Using Auth component with two different models

2013-04-24 Thread Alex Bovey
On Tue, Apr 23, 2013 at 7:26 PM, André Luis wrote: > > I suggest to use a single model and separate the users using groups... Thanks André - best plan I think. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message b

Re: Using Auth component with two different models

2013-04-23 Thread André Luis
I suggest to use a single model and separate the users using groups... Em sexta-feira, 19 de abril de 2013 12h39min38s UTC-3, Alex Bovey escreveu: > > Hi all, > > What's the best technique to use if I have two separate areas of my site > and I want the Auth component to use two separate models to

Re: Using Auth component with two different models

2013-04-23 Thread Alex Bovey
On Fri, Apr 19, 2013 at 4:39 PM, Alex Bovey wrote: > Hi all, > > What's the best technique to use if I have two separate areas of my site and > I want the Auth component to use two separate models to log in to those > areas? > > I have tried setting the $this->Auth->authenticate['Form']['userModel