I am a Java/J2EE developer, and I am new to CI (although I develop php4 apps since 2001).
My current problem is that, I wanted to code my super controllers and models that could provide some convenience methods to be used in the “child” classes (I think this is the very first thing an OOP developer wants to do before even start coding a new app!).
This is the situation I’d like to implement (using php4 and CI 1.5.4):
class AppController extends Controller
class Controller1 extends AppController
as simple as 1 2 3? not at all! I received the “can’t inherit from non existing class…” error when invoking the Controller1 class from my URIs.
What’s wrong with that? I have read that I can not extend Models but what about Controllers?
Thank you for any kind feedback.