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. -- View this message in context: http://www.nabble.com/Validation-for-client-and-admin-panel-tp25556513p25556513.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---