jd2007 Posted August 11, 2007 Share Posted August 11, 2007 if i have a constructor in a child class, must i insert all variables of the parent constructor ? Quote Link to comment https://forums.phpfreaks.com/topic/64368-i-have-a-constructor-in-a-parent-class-in-the-child-class-will-it-be-called/ Share on other sites More sharing options...
KrisNz Posted August 11, 2007 Share Posted August 11, 2007 call parent::__construct() in your child's constructor. Quote Link to comment https://forums.phpfreaks.com/topic/64368-i-have-a-constructor-in-a-parent-class-in-the-child-class-will-it-be-called/#findComment-320985 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.