Did you try $b-a()?
It should work.
--
Yasuo Ohgaki
"Milan Mlynarcik" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Is there way to access paret class from outside of class ???
I know that to access parent object from within the class I can use code
like this one:
?php
class a
{
vara;
function a()
{
$this-a = "OK";
}
}
class b extends a
{
function b()
{
//here I access a class directly
a::a();
}
}
?
But I would like to know how to access a class like this:
?php
$b = new b();
//and now I want to access class a with something like
$b-a::a();
//but this doesn't work
?
Is it possible ??? If yes how ???
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]