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

[eluser]hccoder[/eluser]
It won't work in this way, because when you click on the link, the the app lives the 'catalog' controller, and you will refresh the 'site' controller. Try to save the current page in session_flashdata in the 'catalog':

function site() {
parent::Controller();
$this->session->set_flashdata('last_url', uri_string());
}

and try this in the site/set_language:

function set_language(){
redirect($this->session->flashdata('last_url')Wink;
}


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