Re: [PHP] Question regarding constructors and child classes

2004-11-17 Thread Jordi Canals
Hi, Comment inline On Wed, 17 Nov 2004 20:19:01 -0600, Brent Clements <[EMAIL PROTECTED]> wrote: > > > class foo { > > function foo () { > > echo "constructed!"; > > } > > } > > class childFoo extends foo { > > function childFoo() { > /

[PHP] Question regarding constructors and child classes

2004-11-17 Thread Brent Clements
If I have the following: Is there any way to run both the parent and child constructor? The reason I'm asking this is because in my parent class, the constructor creates the database connection, in the child constructor it set's up all variables for the child class. If I