I have a class admin_model
with the private method admin_form()
There are a number of other public functions that call this method.
Is there a way to get the name of the function that called admin_form()
from INSIDE admin_form()
?
I could easily add an argument when calling admin_form()
like:
$this -> admin_form(__FUNCTION__);
then inside admin_form($caller)
I have the caller. It will be $caller
But i was hoping there was a way to do this WITHOUT passing arguments.
Any Ideas??
Cheers, Alex