[eluser]mvn1990[/eluser]
hi, in my project i work with a main tempalte so i have the footer and header in an other view but now i wanne show errors when the user try uploading a file but how can i set the variable for error "empty" when loading the view for example...
array('error' => ' ' );
$data['main_content'] = 'index';
$this->load->view('includes/template', $data);
and also what to do when i wanne show the errors...
$error = array('error' => $this->upload->display_errors());
$data['main_content'] = 'index';
$this->load->view('includes/template', $data);
so how can i pass the variables at the same time with the data and what do i have to write in the view...
thanks in advance