Hello again, and I'm sorry because i post 2 times with same problem.
for Sergei:
I have tried your suggestion, and this is my code:
$this->Session->write('user',$this->data['Login']);
$level=$this->Session->read('user.login_type_id');
if($level==1)
{
$this->redirect('/administrators/index');
exit();
}
elseif ($level==2)
{
$this->redirect('/sales_records/index');
exit();
}
else
{
$this->redirect('/company_records/index');
exit();
}
} else {
$this->set('error',true);
}
And it still didn't work.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---