Use messaging system instead of insertion into views
This commit is contained in:
@@ -89,8 +89,8 @@ class Projects extends CI_Controller {
|
|||||||
if($result)
|
if($result)
|
||||||
redirect('/projects/detail/' . $result, 301);
|
redirect('/projects/detail/' . $result, 301);
|
||||||
else {
|
else {
|
||||||
$tpl['error'][] = "Das Projekt konnte nicht gespeichert werden.";
|
$this->messages->add('Das Projekt konnte nicht gespeichert werden.', 'error');
|
||||||
$this->load->view('project/new', $tpl);
|
$this->load->view('project/new');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user