Welcome Guest, Not a member yet? Register   Sign In
using redirect() help?
#4

[eluser]chefnelone[/eluser]
I tried. but didn't work for me.


I load 'myViewPage' from a controller called 'catalog'
...185.33.1.1/catalog/myViewPage
with a link:
Code:
<a href="site/set_language/english">Run set_language and refresh this page</a>


Then I have the 'site' controller with:
Code:
function set_language(){
redirect(uri_string());
}


When I hit the link the browser takes me to this url:

...185.33.1.1/index/set_language/english
instead of
...185.33.1.1/catalog/set_language/english


Maybe the cause is that I have the function 'set_language' in the 'site' controller but I load the 'myViewPage' from 'catalog' controller. Should I have all in one controller to get redirect() working properly?


Messages In This Thread
using redirect() help? - by El Forum - 02-11-2010, 02:45 AM
using redirect() help? - by El Forum - 02-11-2010, 02:54 AM
using redirect() help? - by El Forum - 02-11-2010, 02:57 AM
using redirect() help? - by El Forum - 02-11-2010, 03:19 AM
using redirect() help? - by El Forum - 02-11-2010, 03:39 AM
using redirect() help? - by El Forum - 02-11-2010, 03:45 AM
using redirect() help? - by El Forum - 02-11-2010, 04:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB