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

(09-14-2016, 10:39 AM)nunenthal Wrote: solved,

I don't know why, but it's not possible to use exit;
subtlety of object programming... 
If some one can give me complete explanation.

So I used an else to include the rest of my function.

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');
            }
else
{
.........
}

The framework hasn't stop just after the loading of views. There is some staff to do after the loading of views so do not terminate. I had noticed that you used a lot of exit in your controller. Just use return or the else that you have made.
[Just a programmer] Cool [/Just a programmer]
Reply


Messages In This Thread
RE: I can't solve my bug (2 days on) pleade help (solved) - by Joel Catantan - 09-14-2016, 09:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB