Hi,
I don't think I am being silly here.
class Parent {
function load($function) {
if (method_exists(__CLASS__, $function)) {
// Load Function
}
}
}
Class Child extends Parent {
function foo() {
}
}
$this->Child->load('foo');
The problem is that __CLASS__
is returning 'Parent'. How do I get it to return Child?