Welcome Guest, Not a member yet? Register   Sign In
Extending Extended Controller !
#1

[eluser]FranckRR[/eluser]
Hi,

I have in my application/libraries/
Class Better_Controller extends CI_Controller {}

In autoload, I load the library Better_Controller

In on controller I want :
Class Upgraded_Controller extends Better_Controller {}

But I got a Fatal Error Class 'Better_Controller' not found in Upgraded_Controller.php line 3

It's weird because I load other classes and use them inside Upgraded_Controller method and no complaining.

Is there a way to make CI automatically load Better_Controller or do I have to require_once() it ?




Theme © iAndrew 2016 - Forum software by © MyBB