If a user is logged in as admin, links will automatically be routed to the admin prefix version of the method. Therefore, it would send a user to the admin_login() method, not login(). The admin_login() method doesn't exist, so you'll get a 'method not found' error. By adding 'admin' => false to the link or redirect, the admin prefix will be ignored and the path will be login(), not admin_login().
Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 14 Feb 2011, at 11:08, ravi wrote: > $this->Auth->loginAction = array('admin' => false, 'controller' => > 'members', 'action' => 'login'); > > Thanks, > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > 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 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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