Posted by paul.j on 01/13/07 05:26
I have
class thechild{
function sayTest()
{
parent::test(); // this right???
}
}
class theparent{
function test()
{
echo "test";
}
function __construct()
{
$e = new thechild();
$e->sayTest();
}
}
How do i get this to work ? I am trying to get a one class (A) to
create another class (B) within it, but the class B must be able to
call a function from class A. Any ideas?
Thanks
Paul Jenkins
www.pjenkins.co.uk
Navigation:
[Reply to this message]
|