Не думаю, что я здесь глупый.
class Parent {
function load($function) {
if (method_exists(__CLASS__, $function)) {
// Load Function
}
}
}
Class Child extends Parent {
function foo() {
}
}
$this->Child->load('foo');
Проблема в том, что __CLASS__
возвращает 'Parent'. Как мне вернуть ребенка?