• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load the view user was at

#1
[eluser]xbonez[/eluser]
In my CodeIgniter based website, my sidebar has the login box.

In the login controller, I have the following code:

Code:
if ($this->form_validation->run() == FALSE)
        {
            $this->load->view('loginfail');
        }          
        else
        {
            $this->load->view('loginsuccess');
        }
Currently, in case of a failed login, it redirects to loginfail view.

What I want to do is send the user back to the view he was at. But since the login box is in a sidebar which is loaded onto every other view, how can I know which view the user was at?


Messages In This Thread
Load the view user was at - by El Forum - 10-07-2011, 03:00 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.