Welcome Guest, Not a member yet? Register   Sign In
Passing referer to a page
#1

[eluser]jaswinder_rana[/eluser]
I am using DX_Auth library. When users log in , it redirects them to base_url(). But, I want it to redirect back to page where it came from.

I am accessing my page like http://domain/auth/login/ref/test_page

then for testing, I tried in my Auth controller's constructor
Code:
$this->load->library('URI');
print_r($this->uri->uri_to_assoc());

But, it's printing empty array. What am I doing wrong here?

I also tried it in login() function but same result.

I posted here as I din't want to clutter DX_Auth thread with this as this is just an extra requirement.



Thanks


Messages In This Thread
Passing referer to a page - by El Forum - 12-21-2008, 03:23 PM
Passing referer to a page - by El Forum - 12-21-2008, 10:54 PM
Passing referer to a page - by El Forum - 12-22-2008, 10:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB