Welcome Guest, Not a member yet? Register   Sign In
Problem with access
#6

[eluser]elmne[/eluser]
I corrected the typo error. What i get now when i access as you said "admin/homepage/login" is this

Quote:A PHP Error was encountered
Severity: Notice

Message: Undefined property: Homepage::$session

Filename: libraries/auth.php

Line Number: 103


Fatal error: Call to a member function userdata() on a non-object

But session is loaded in


Code:
function Auth()
    {
        $this->CI->load->library('session');
        $this->CI->load->database();
        $this->CI->load->helper('url');
    }


and line 103 is this: if ($this->CI->session->userdata('logged_user') == FALSE)

Code:
/**
     *
     * Checks if a user is logged in
     *
     * @access    public
     * @return    boolean
     */
    function logged_in()
    {
        if ($this->CI->session->userdata('logged_user') == FALSE)
        {
            return FALSE;
        }
        else
        {
            return TRUE;
        }
    }


Messages In This Thread
Problem with access - by El Forum - 06-09-2010, 09:04 PM
Problem with access - by El Forum - 06-09-2010, 09:04 PM
Problem with access - by El Forum - 06-09-2010, 09:24 PM
Problem with access - by El Forum - 06-09-2010, 09:32 PM
Problem with access - by El Forum - 06-09-2010, 10:04 PM
Problem with access - by El Forum - 06-09-2010, 10:23 PM
Problem with access - by El Forum - 06-10-2010, 07:23 AM
Problem with access - by El Forum - 06-10-2010, 04:14 PM
Problem with access - by El Forum - 06-10-2010, 04:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB