Welcome Guest, Not a member yet? Register   Sign In
Quick Question!
#3

[eluser]Michael Wales[/eluser]
This merely sounds like a browsing caching issue.

If I have a series of records, each with a checkbox, I click on all the little checkboxes, hit a delete button. That form self-submits to the same controller/method that displayed the list of results, runs some validation processes, sends the delete action to the model, then redirects to the controller/method again (to display the list of results), that new view should only show what exists in the database at that time.

Code:
function view() {
  $this->load->library('form_validation');

  if ($this->form_validation->run()) {
    // Make a call to the model's delete action for each of the selected checkboxes
    redirect('controller/view');
    return;
  }
  // Make a call to the model to retrieve all records - place in $data var
  $this->load->view('records/edit', $data);
}

Maybe a more detailed explanation of exactly what is wrong is in order...


Messages In This Thread
Quick Question! - by El Forum - 07-08-2009, 09:02 AM
Quick Question! - by El Forum - 07-08-2009, 10:34 AM
Quick Question! - by El Forum - 07-08-2009, 11:28 AM
Quick Question! - by El Forum - 07-09-2009, 02:15 AM
Quick Question! - by El Forum - 07-09-2009, 02:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB