1
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
4
class Logout extends CI_Controller {
8
function __construct() {
11
//Load required library
12
$this->load->model('user', '', TRUE);
17
* This function runs when the user navigates directly to the lougout controller
19
public function index() {
21
$this->user->logout();
24
redirect('home', 'refresh');
b'\\ No newline at end of file'