Re: Using same Auth component in admin and client

2009-09-25 Thread vinodkalpaka
I have tried this one, this is similar to the previous code. Actually it should get result, but somehow fails. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cak

Re: Using same Auth component in admin and client

2009-09-24 Thread brian
$admin = Configure::read('Routing.admin'); if (isset($this->params[$admin]) && $this->params[$admin]) But I've no idea if Auth can handle having 2 models like this. On Thu, Sep 24, 2009 at 7:06 AM, vinodkalpaka wrote: > > How can I use same Auth component in admin and client properly? What > i

Using same Auth component in admin and client

2009-09-24 Thread vinodkalpaka
How can I use same Auth component in admin and client properly? What is the use of $this->Auth->userModel ="modelname" . I am using users table in admin side and customers table in client side I have used the following code in beforeFilter() function of AppController here is the code $this->pos