• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
$this->form_validation->run() results in blank page?

#1
[eluser]Unknown[/eluser]
Hey there!

Code:
public function follow_up_report()
{
  $data['title'] = 'Follow-Up Report';
  $data['status'] = 'no_success';

  if ($this->uri->segment(3) == 'save')
  {
   $this->form_validation->set_rules('date', 'date', 'valid_date');
   $this->form_validation->set_message('valid_date', 'You must enter a valid date!');

   if ($this->form_validation->run())
   {
    $data['status'] = 'success';
   }
  }

  $data['page_content'] = $this->parser->parse('outreach/follow_up_report', $data, TRUE);
  $this->parser->parse('outreach/main_view', $data);
}

Why is it that, whenever the 3rd URL segment is 'save,' the page disappears? I have confirmed that $this->form_validation->run() is causing this, but I am not sure why. Any help would be immensely appreciated!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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