Welcome Guest, Not a member yet? Register   Sign In
Very weird array problem
#2

[eluser]vitoco[/eluser]
Code:
public function view($uploadid = FALSE) {
        
        // If not id is specified, go home
        if (!$uploadid)
        {
            // ONLY NEEDS SEGMENTS LIKE 'controller/method/param1.../'
            // http://ellislab.com/codeigniter/user-guide/helpers/url_helper.html
            redirect('');
            // I THINK IT NEEDS AND exit() or return to stop the execution
            exit();
        }

        $data['upload'] = $this->uploads_model->get_upload($uploadid);
        
        // If not data is found with that ID, show error
        if (empty($data['upload']))
        {
            // SAME HERE I'LL GUESS
            redirect_with_error(base_url(), 'flash_error_upload_view'); // FIX THIS
            exit();
        }
        
        $data['content_view'] = 'upload_view_view';
        $this->load->view('container_view', $data);        
    }

Saludos


Messages In This Thread
Very weird array problem - by El Forum - 04-21-2010, 12:55 PM
Very weird array problem - by El Forum - 04-21-2010, 04:46 PM
Very weird array problem - by El Forum - 04-22-2010, 03:00 PM
Very weird array problem - by El Forum - 04-22-2010, 03:06 PM
Very weird array problem - by El Forum - 04-22-2010, 03:08 PM
Very weird array problem - by El Forum - 04-22-2010, 03:24 PM
Very weird array problem - by El Forum - 04-22-2010, 05:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB