Posted by Juliusz on 06/22/06 06:56
Hello,
> class A
> $var = $this->m_oObjectC->FctClassC();
you are trying to access method FctClassC() in Class B,
but Class B has not that method
> class B
> $oObjectC = new C();
in constructor you are initialising local variable
$oObjectC, it's can't be accessed from anywhere
after constructor finished
Solution:
1. change class B declaration on: Class B extends C
2. in constructor class B change: $this->oObjectC = new C();
Read about OOP.
I hope it's help.
--
Best Regards,
Juliusz
http://www.jetfish.net
[Back to original message]
|