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

[eluser]chefnelone[/eluser]
[quote author="hccoder" date="1265902757"]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;
}[/quote]

It didn't works. :-S

I understand from what you've said that if I just use 1 controller, it'll works fine. right?


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