PHP Code:
class clA
{
public function setX($X)
{...}
}
class clB
{
private $A;
public function __construct()
{
$A = new clA();
}
public getA()
{
return $this->A;
}
}
$objB = new clB();
$objB->getA()->setX(0);
Fatal error: Call to a member function setA() on a non-object in...
könnt ihr mir weiterhelfen?
ps: PHP5
Comment