I have a custom helper that i use for logging.
Within one of the functions of the helper i need to get the name of the controller that was called. Is there a way to do i
$this->>router->fetch_method(); will return index if you do something like this:
$this->>router->fetch_method();
index
class Someclass extends CI_Controller { function index(){ $this->edit(); } function edit(){ $this->router->fetch_method(); //outputs index } }