Welcome Guest, Not a member yet? Register   Sign In
Get name of parent method and classf
#1

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:




PHP Code:
class MyClass extends CI_Controller {

public function 
MyFunction() {
 
  $this->log->log_actions($data);
}


 i want a way to the the MyClass name and the MyFunction.
Reply


Messages In This Thread
Get name of parent method and classf - by FlevasGR - 06-13-2015, 03:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB