How to make a redirect occur after the controller has performed the function (how to correctly redirect to the local URI)

    1 answer 1

    The second parameter allows you to choose between the "location" method (by default) and the "refresh" method. The location method is faster, but it sometimes causes problems on Windows servers. Example:

    if ($logged_in == FALSE) 

    {redirect ('/ login / form /', 'refresh'); }