Welcome Guest, Not a member yet? Register   Sign In
Refreshing the current site
#7

[eluser]xwero[/eluser]
uri_string gives you the the page that is going the be loaded so if you don't go to some other controller for the authentication process you can use that function.
If you do the authentication in another controller and you want to go back to the page you filled in the authentication form you need to fetch the page before sending the post data to the authentication controller.
The 1.7 url helper has a uri_string function you can use to populate a hidden field named current_page for example. But you can add the function yourself.
Code:
function uri_string()
    {
        $CI =& get_instance();
        return $CI->uri->uri_string();
    }


Messages In This Thread
Refreshing the current site - by El Forum - 10-06-2008, 02:21 AM
Refreshing the current site - by El Forum - 10-06-2008, 02:32 AM
Refreshing the current site - by El Forum - 10-06-2008, 02:43 AM
Refreshing the current site - by El Forum - 10-06-2008, 02:46 AM
Refreshing the current site - by El Forum - 10-06-2008, 03:05 AM
Refreshing the current site - by El Forum - 10-06-2008, 03:12 AM
Refreshing the current site - by El Forum - 10-06-2008, 03:36 AM
Refreshing the current site - by El Forum - 10-06-2008, 04:21 AM
Refreshing the current site - by El Forum - 10-06-2008, 09:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB