Welcome Guest, Not a member yet? Register   Sign In
Class not found
#1

[eluser]gtipete[/eluser]
im trying to do some simple authentication by extending the Controller class. Here is my code.

Code:
<?php
class MY_Auth extends Controller {
    
    function MY_Auth()
    {
        parent::Controller();
        if(!isset($this->session->userdata('logged_in')) || $this->session->userdata('logged_in') != TRUE)
        {
            redirect('user/login/', 'refresh');
            exit;
        }
    }
}
?>

This is called MY_Auth.php and located in the libraries folder. When try to extend this class, i get the following error:

Fatal error: Class 'MY_Auth' not found in C:\xampp\htdocs\gallery\system\application\controllers\gallery.php on line 2


Messages In This Thread
Class not found - by El Forum - 09-02-2008, 04:25 PM
Class not found - by El Forum - 09-03-2008, 03:15 AM
Class not found - by El Forum - 09-03-2008, 03:57 AM
Class not found - by El Forum - 09-03-2008, 09:55 AM
Class not found - by El Forum - 09-03-2008, 11:16 AM
Class not found - by El Forum - 09-03-2008, 12:45 PM
Class not found - by El Forum - 09-03-2008, 01:19 PM
Class not found - by El Forum - 09-03-2008, 03:33 PM
Class not found - by El Forum - 09-03-2008, 04:17 PM
Class not found - by El Forum - 09-03-2008, 05:04 PM
Class not found - by El Forum - 09-03-2008, 07:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB