I am developing application cakephp 1.2.7. For that there are different user level. for different users I have added code in users controller $users = $this->Session->read('Auth.User'); //print_r($users); $user_type = $users['group_id']; $group =$user_type; if($group==1){ $this->layout ='admin';
} if($group==2){ $this->layout = 'manager'; } else{ $this->layout = 'default'; } while i am not getting info about user from Auth session. each time its empty and layout i am getting is default. Can anybody help me regarding this? thanks in advance Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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