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

(04-17-2017, 02:56 PM)Martin7483 Wrote: I believe looking at what he posted this is missing in the constructor of MY_Controller

PHP Code:
parent::__construct(); 

Or maybe the whole constructor method is missing in the MY_Controller class

But, if MY_Controller does not mess with any CI_Controller properties (and it only has one - private static $instance; so there is nothing to mess with) then technically he does not need to explicitly call the base class constructor. PHP will do it anyway.
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB