Hello,
I am newly using Yii. My question is, after login I want to redirect to test page (test.php). Where I need to change?
By default it goes to home page(index.php).
Please help me.
Thanks
Neel
Hello,
I am newly using Yii. My question is, after login I want to redirect to test page (test.php). Where I need to change?
By default it goes to home page(index.php).
Please help me.
Thanks
Neel
Hi,
after validation use redirect method:
$this->redirect('action');
You can change the default return url by changing the CWebUser’s returnUrl field.
what need to be done for redirecting a user to a different page other than default page after logging in??
Just change the line:
$this->redirect('action');
in the site controller action login