How to redirect to previous URL in YII

If you want to get previous URL use blow line of code

If you want to redirect to the previous URL use blow line of code

That’s it happy coding

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.