I was wondering if you could help me out..
I have two classes, one extends the other.. Class B will be extended by various different objects and used for common databas
Call parent::__construct() in a::__construct():
parent::__construct()
a::__construct()
class a extends b { public function __construct() { parent::__construct(); } public function validateStuff() { $this->insert_record(); } }
You can omit a's constructor altogether if you're not doing any a-specific stuff.