Welcome Guest, Not a member yet? Register   Sign In
redirect problem
#1

[eluser]Unknown[/eluser]
I have a link that when pressed redirects to a controller.

Code:
function fullSite()
{
    //Sets a session variable
    redirect($base_url, 'refresh');
}

The problem I'm having is that when this controller is run it doesn't run anything defined in my core controller constructor. However then if I refresh the page the redirect does work and the core controller constructor is run.

Is there are way to do a complete refresh the first time the function is run?
#2

[eluser]CroNiX[/eluser]
redirect is meant to work with segments, not full urls. redirect('home', 'refresh') or whatever your default controller is...




Theme © iAndrew 2016 - Forum software by © MyBB