From 907004420ac976437eeb86ded44af3543c3586e2 Mon Sep 17 00:00:00 2001 From: "de@itstall.de" <de@itstall.de> Date: Sun, 25 Feb 2018 19:23:41 +0100 Subject: [PATCH] Finished Issue #5, Issue #6 and Issue #3 --- application/models/admin/Logging_model.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 application/models/admin/Logging_model.php diff --git a/application/models/admin/Logging_model.php b/application/models/admin/Logging_model.php new file mode 100644 index 0000000..907cb01 --- /dev/null +++ b/application/models/admin/Logging_model.php @@ -0,0 +1,14 @@ +<?php + class Logging_model extends CI_Model{ + public function history_write($user_id, $action, $table_name = NULL, $table_id = NULL) { + $data = array( + 'user_id' => $user_id, + 'action' => $action, + 'table_name' => $table_name, + 'table_id' => $table_id, + ); + $this->db->insert('history', $data); + return true; + } + } +?> \ No newline at end of file -- GitLab