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 = strpos($_SERVER['REQUEST_URI'], "admin");
if ($this->pos != true)
$this->Auth->userModel = 'Customer';
else
$this->Auth->userModel = 'User';

But this do not work properly.
I can login to the client panel if Use the line $this->Auth->userModel
= 'Customer';, but admin panel validation fails.
Please advice me.

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

Reply via email to