Hallo Zusammen, ich habe folgendes Problem:
z.B:
class a
{
function halloWorld()
{echo "HALLO";}
}
class b extends a
{
function halloWorld()
{echo "NIX DA";}
}
class c extends b
{
//Hier möchte ich gerne die Methode halloWorld() aus der
//class a aufrufen ohne den classennamen zu verwenden.
}
Mit
parent::halloWorld();
wird NIX DA ausgegeben. Ich möchte allerdings als Ausgabe HALLO
parent::parent::halloWorld() geht nicht.
Was kann ich tun?
vielen Dank im vorraus