1
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
4
class Home extends CI_Controller {
8
function __construct() {
10
$this->load->model('user', '', TRUE);
15
* This function runs when the user navigates directly to the home controller
18
//If the user is logged in
19
if($this->user->isLoggedIn())
21
$this->load->view('home_view');
23
//Redirect user to login page
24
redirect('login', 'refresh');
b'\\ No newline at end of file'