From b26b525c2029df9ec1926196bd14c6702624a29f Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sun, 22 Sep 2019 21:41:23 +0100 Subject: [PATCH] Added basis for multi logbook --- application/controllers/User_Logbooks.php | 19 +++++++++++++++++++ application/models/Logbooks.php | 16 ++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 application/controllers/User_Logbooks.php create mode 100644 application/models/Logbooks.php diff --git a/application/controllers/User_Logbooks.php b/application/controllers/User_Logbooks.php new file mode 100644 index 00000000..02e5cf20 --- /dev/null +++ b/application/controllers/User_Logbooks.php @@ -0,0 +1,19 @@ +load->helper(array('form', 'url')); + + $this->load->model('user_model'); + if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } + } + + public function index() + { + echo 'Functions to come'; + } \ No newline at end of file diff --git a/application/models/Logbooks.php b/application/models/Logbooks.php new file mode 100644 index 00000000..60129730 --- /dev/null +++ b/application/models/Logbooks.php @@ -0,0 +1,16 @@ +