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
* 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;
> }
> }
>
2 matches
Mail list logo