Added basic setup controller and view

pull/106/merge
Peter Goodhall 2011-08-20 22:15:37 +01:00
rodzic 666817f37e
commit 39e3895294
2 zmienionych plików z 21 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,15 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Setup extends CI_Controller {
/* Default setup page*/
public function index()
{
$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'); }
$this->load->view('layout/header');
$this->load->view('setup/index');
$this->load->view('layout/footer');
}
}

Wyświetl plik

@ -0,0 +1,6 @@
<h2>Setup</h2>
<div class="wrap_content note">
<p>Options coming soon.</p>
</div>