Welcome Guest, Not a member yet? Register   Sign In
I can't solve my bug (2 days on) pleade help
#3

(09-14-2016, 09:00 AM)nunenthal Wrote: I have this controller, all work fine.
But the problem is in the public function add_equipe_do()

in this line
if ($this->form_validation->run() == FALSE)
            {
                $this->load->view('admin_header');
                $data['error_upload']='';
                $this->load->view('equipe_add_display',$data);
                $this->load->view('admin_footer');
                exit;
            }

When there is a error in the form, nothing is displayed without php or codeigniter error.
In the reste of code the tree view is displayed correctly, but not here.

Don't use exit. If you want to finalize the controller use return;
Code:
if ($this->form_validation->run() == FALSE)
{
              $this->load->view('admin_header');
              $data['error_upload']='';
              $this->load->view('equipe_add_display',$data);
              $this->load->view('admin_footer');
              //exit;//Remove this line
              return; //Use return
}

Reply


Messages In This Thread
RE: I can't solve my bug (2 days on) pleade help - by davicotico - 09-14-2016, 10:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB