Designing and Development > Yii PHP Framework Support
How to redirect users after login in Yii Framework
(1/1)
rahul:
HI ,
I am new to yii i install yii on windows to test Yii framework its good also but i have some problem with that
I want to redirect my users after login to same place where He/She comes from default ReturnUrl send my user to site\index.php how can i Solve this problem is there any simple way to do that so that i can work further on my project Please Help ..
phpdeveloper:
you can use urlRefrrer to achieve this like this:
--- Code: --- $this->redirect(Yii::app()->request->urlReferrer)
--- End code ---
this will take your user back there He/she comes from
perks:
HI,
Can you tell me in wich file i have to made these changes this is what i am looking for
Thanks in advance
phpdeveloper:
You can made these changes in view/layout/main.php
Navigation
[0] Message Index
Go to full version