hi
 how can i check for group id and redirect after login to admin site
and if it was a member then public member area.
I have same login section for both Admin and members.
I am trying to do something like this.

if($this->Auth->user('group_id')== 5){
        $this->Auth->loginRedirect = array('controller'=>'newsletters',
'action'=>'index'); }
else{
$this->Auth->loginRedirect = array('controller'=>'Pages',
'action'=>'display'); }


but no success.
Any help please..

atta ur rehman

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