06-13-2015, 03:32 AM
Hello, i'm writing a log script which basicaly logs the user actions and stores them in the database for further analysis. Its a very basic script but it does the job. However i need a way to get the name of the parent methon which the log action is called and the class. The standard php get_parent_class returns CI_Controller instead on the class name i want.
For example if i have something like this:
i want a way to the the MyClass name and the MyFunction.
For example if i have something like this:
PHP Code:
class MyClass extends CI_Controller {
public function MyFunction() {
$this->log->log_actions($data);
}
}