diff --git a/Controller/StaffController.php b/Controller/StaffController.php index ddbc8b2..66c57a5 100644 --- a/Controller/StaffController.php +++ b/Controller/StaffController.php @@ -56,6 +56,7 @@ public function admin_add() $this->request->data['instagram_url'] ); $this->response->body(json_encode(array('statut' => true, 'msg' => $this->Lang->get('STAFF__ADD_SUCCESS')))); + $this->History->set('ADD_STAFF', 'staff'); } } else { $this->redirect('/'); @@ -91,6 +92,7 @@ public function admin_edit($id) $this->request->data['instagram_url'] ); $this->response->body(json_encode(array('statut' => true, 'msg' => $this->Lang->get('STAFF__ADD_SUCCESS')))); + $this->History->set('EDIT_STAFF', 'staff'); } $staff = $this->StaffListing->get($id); @@ -110,9 +112,10 @@ public function admin_delete($id) if (!$this->StaffListing->exist($id)) $this->redirect('/admin/staff'); $this->StaffListing->_delete($id); + $this->History->set('DELETE_STAFF', 'staff'); $this->redirect('/admin/staff'); } else { $this->redirect('/'); } } -} \ No newline at end of file +}