Yii redirect is not working correctly in server
After login I'm trying to redirect the user based on their user role to
their specified page. I tried redirect and header but both is not working
for me in the server.
I tried,
$this->redirect('dashboard/profile');
$this->redirect(array('dashboard/profile'));
header('Location: dashboard/profile');
This all working perfectly in the local but not in the server please help me.
Thanks in advance.
No comments:
Post a Comment