Welcome Guest, Not a member yet? Register   Sign In
Clarification about MY_Controller and relative inheritances
#5

(This post was last modified: 04-17-2017, 02:52 PM by dave friend.)

@Diederik and  @marksman,

The OP already has all this child classes in the same file as MY_Controller so he has no need of an autoloader. Not that I agree with that technique but it does work.

His Dashboard class seems to load (at least his post implies it does) so that means all the parent classes are being constructed. Makes me wonder if the code he is actually running has a typo. I don't see one in the code he presented. The exact error message may shed some light things.

As best I can tell the test case I posted earlier recreates the structure Giorgio describes and it works perfectly.
Reply


Messages In This Thread
RE: Clarification about MY_Controller and relative inheritances - by dave friend - 04-17-2017, 02:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB