calling parent class
Posted: Wed Jul 12, 2006 5:31 am
ok i have to call the parent class but its not that easy. heres what i got in one class:
but I can't do:
since that would be that classes parent, not $tmp's classes parent. There is probably some way to write it but I can't seam to find it. I tried
but that gave an error of course. any help?
Code: Select all
$tmp = new $ClassName;
return $tmp;Code: Select all
parent::__construct();Code: Select all
$tmp->parent::__construct();