Use messaging system instead of insertion into views
This commit is contained in:
@@ -105,6 +105,10 @@ class Projects extends CI_Controller {
|
||||
|
||||
public function detail($prj_id) {
|
||||
$project = $this->project->getById($prj_id);
|
||||
$this->messages->add('Das Projekt konnte nicht geladen werden.', 'error');
|
||||
redirect('/projects/', 301);
|
||||
}
|
||||
|
||||
$this->session->set_userdata('active_project', $prj_id);
|
||||
$trials = $this->trial->getByProjectId($prj_id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user