[PHP] Class extension problem

2003-08-06 Thread Joshua Groboski
Ok, I have a parent class (CMS) and a child class (WebSite extends CMS). There is some important stuff going on in the constructor for CMS that I think should be happening when I instantiate a new WebSite. Look at the following example: prop1 = "A"; } } class WebSite extends CMS{ var $prop2

Re: [PHP] Class extension problem

2003-08-05 Thread Curt Zirzow
* Thus wrote Joshua Groboski ([EMAIL PROTECTED]): > > class CMS { > var $prop1 = "a"; > function CMS(){ > $this->prop1 = "A"; > } > } > > class WebSite extends CMS{ > var $prop2 = "b"; > function WebSite(){ } > function setProp2(){ > $this->prop2 = $this->prop1; > } > } >