I have a ready made class X
class X
{
private $pA;
function __construct($id=0)
{
$pA=new myClass($id);
}
}
class myClass
{
private $id;
function __construct($id=0)
{
echo 'constructing....';
}
}
But there is no echo output the class construction stops at the new operator.
sorry there is () after myclass I mistook
<?phpand?>on your files ? Your code works like a charme :-)