[eluser]NZmuzzer[/eluser]
I use elseif very rarely so am unsure of phrasing, but would presume you need curly brackets for multiple statements? I use curly brackets for all if statements as I think it helps define the layout of the code better and makes it more readable...
I doubt this will solve your particular problem, but all I can suggest is you try changing
Code:
if($this->input->post('mysubmit') == 'ja'):
$this->Aktuell_model->del_artikel($this->input->post('id2'));
redirect($this->data['controller'].'/show/'.$this->input->post('parentid'),'location', 301);
return;
elseif($this->input->post('mysubmit') == 'nein'):
redirect($this->data['controller'].'/show/'.$this->input->post('id2'),'location', 301);
return;
endif;
$this->data['record'] = $this->Aktuell_model->get_artikel($id);
$this->data['view']['content'][] = $this->load->view('delete', $this->data, TRUE);
$this->load->view('page',$this->data);
to
Code:
if($this->input->post('mysubmit') == 'ja'):
{
$this->Aktuell_model->del_artikel($this->input->post('id2'));
redirect($this->data['controller'].'/show/'.$this->input->post('parentid'),'location', 301);
return;
}
elseif($this->input->post('mysubmit') == 'nein'):
{
redirect($this->data['controller'].'/show/'.$this->input->post('id2'),'location', 301);
return;
}
endif;
$this->data['record'] = $this->Aktuell_model->get_artikel($id);
$this->data['view']['content'][] = $this->load->view('delete', $this->data, TRUE);
$this->load->view('page',$this->data);