From 39e3895294e2c1deee4263fc6082c793207c7e75 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sat, 20 Aug 2011 22:15:37 +0100 Subject: [PATCH] Added basic setup controller and view --- application/controllers/setup.php | 15 +++++++++++++++ application/views/setup/index.php | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 application/controllers/setup.php create mode 100644 application/views/setup/index.php diff --git a/application/controllers/setup.php b/application/controllers/setup.php new file mode 100644 index 00000000..7da7e2b8 --- /dev/null +++ b/application/controllers/setup.php @@ -0,0 +1,15 @@ +load->model('user_model'); + if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } + + $this->load->view('layout/header'); + $this->load->view('setup/index'); + $this->load->view('layout/footer'); + } +} \ No newline at end of file diff --git a/application/views/setup/index.php b/application/views/setup/index.php new file mode 100644 index 00000000..bedf6e11 --- /dev/null +++ b/application/views/setup/index.php @@ -0,0 +1,6 @@ +

Setup

+
+ +

Options coming soon.

+ +
\ No newline at end of file