Şu anda kendi bir PHP MVC-Framework üzerinde çalışıyorum (deneyim amaçlar için).
My question: Is it possible to call a defined function or method, every time a class-method has been called?
Örneğin:
public function view($id) {
//Code ...
$this->view->render(__FUNCTION__);
}
Ne istiyorum:
public function view($id) {
//Code ...
//render-method is called automatically with functionname as parameter
}
I tried different methods ... but without success. Would be great if someone could help me out with this.
Cheers, Chris