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

[eluser]gtipete[/eluser]
[quote author="drewbee" date="1220480177"]It looks like you have a library you want to run:

/system/application/libraries/Auth.php
Code:
Auth extends Controller
{

}

Now, in our controller:

Code:
$this->load->library('auth');
[/quote]

What i actually want to do is extend the controller. So then in my other controllers (which need authorisation) i can do
Code:
class Gallery extends MY_Auth{

    function Gallery()
    {
        parent::My_Auth();    
    }
}

Then i dont have to put the authorisation code in every controller.

Thanks


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