Welcome Guest, Not a member yet? Register   Sign In
Shouldn't CI load MY_ class automaticly?
#1

[eluser]FinalFrag[/eluser]
Well, the title says it all actually...

I have made a library like this:
Code:
class MY_Controller extends Controller {
    function MY_Controller() {
        parent::Controller();
    }
    
    function getMyList() {
        // do stuff here
    }
}

I should be able to do this in my controllers now:
Code:
class Home extend Controller {
    function Home() {
        parent::Controller();
        $this->getMyList();
        
        // etc...
    }
}

Or am I wrong? Should I extend 'Controller' or 'MY_Controller'?


Messages In This Thread
Shouldn't CI load MY_ class automaticly? - by El Forum - 09-09-2008, 07:02 AM
Shouldn't CI load MY_ class automaticly? - by El Forum - 09-09-2008, 07:14 AM
Shouldn't CI load MY_ class automaticly? - by El Forum - 09-09-2008, 07:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB