mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added basic setup controller and view
This commit is contained in:
15
application/controllers/setup.php
Normal file
15
application/controllers/setup.php
Normal file
@@ -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');
|
||||
}
|
||||
}
|
||||
6
application/views/setup/index.php
Normal file
6
application/views/setup/index.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<h2>Setup</h2>
|
||||
<div class="wrap_content note">
|
||||
|
||||
<p>Options coming soon.</p>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user