• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you force redirect?

I have a form that after submitting I am trying to get it to go back to a fixed URL but it never seems to completely direct, only append the URL.

Here's the controller code:
function delete() {
        $html_head = array( 'title' => 'Estimate Management' );

        $estimates = $this->Estimatemodel->get_estimates();

        $this->load->view('html_head', $html_head);
        $this->load->view('estimates/view', array('estimates' => $estimates));

The redirect() function within documentation doesn't work to append the URL, but I want a forced complete redirect to the URL.

Redirect only work if you use it befor sending any header to client, Maybe you can you use in your header the html metatag refresh.


[eluser]Afro Radio Head[/eluser]


This doesn't work? You can view the page at http://ellislab.com/codeigniter/user-gui...elper.html

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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