Welcome Guest, Not a member yet? Register   Sign In
Problem with display_errors
#11

[eluser]jacobc[/eluser]
Sorry I'm really not thinking... use

Code:
foreach($_FILES as $key => $value) {
    $this->upload->initialize($config);
    if ( ! $this->upload->do_upload($key)) {
        $data['error'] = $this->upload->display_errors();

        $this->load->view('propreg/f_propreg3_multifileupload_v1', $data); //Upload Form

    }
    else {
        $this->load->model('Process_image');

        $this->Process_image->process_pic();

    }
}

And just do
Code:
<?php echo $error ?>
in the view.


Of course it really seems like a waste just using a view for that... so you could either create an array of all the errors which is how I was originally thinking...

Then loop through them in the view...

Or else, why use a view at all? just echo it from the controller.


Messages In This Thread
Problem with display_errors - by El Forum - 03-12-2009, 01:24 AM
Problem with display_errors - by El Forum - 03-12-2009, 01:34 AM
Problem with display_errors - by El Forum - 03-12-2009, 01:48 AM
Problem with display_errors - by El Forum - 03-12-2009, 01:52 AM
Problem with display_errors - by El Forum - 03-12-2009, 01:56 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:00 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:01 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:08 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:11 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:15 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:20 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:38 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:39 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:41 AM
Problem with display_errors - by El Forum - 03-12-2009, 02:45 AM
Problem with display_errors - by El Forum - 03-12-2009, 03:07 AM
Problem with display_errors - by El Forum - 03-12-2009, 03:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB