Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]nomie7[/eluser]
Ben thanks for the help. Now is_logged_in() not working...

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Messages extends CI_Controller {
    
        function __construct(){
        
        parent::__construct();
        $this->load->library('ion_auth');
        $this->load->library('session');
        $this->load->database();
        $this->load->helper('url');
    }

    
    function index(){
    
    if (!$this->ion_auth->logged_in())
        {
            $this->load->view('auth/index');

        } else {
                        $this->load->view('messages');
                }
}
}

Even if i am not logged in i get view of messages.


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 05-02-2011, 07:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB