I have two classes:
class JController{
public static function getInstance()
{
//some source, not important...
self::createFile();//
}
public static function createFile()
{
// this is base class method
}
}
class CustomController extends JController{
public static function createFile()
{
// this is overriden class method
}
}
And I am trying to call static method on derived class which calls parents method and not overriden. Is it expected behaviour?
That's how I try to use it:
$controllerInstance = CustomController::getInstance();
My question is: why doesn't CustomController::getInstance() call on CustomController::createFile()?