Redirection to the same page


I have problem with view redirect in a SiteController.

I have define buttons for language selection. The buttons are define in views/layouts/main.php (so that tyey appear in header of the page) and they are associated with an action defined in SiteController. The user can then change the language every where he are. How can I redirect the user to the view where he was while selecting the language?


You could grab the current request URL with the getRequestUri() function of CHttpRequest, pass it to the SiteController action, and then simply redirect to it from SiteController.

It works thanks!