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 should work (not so sure if it works in the helper):
$ci =& get_instance(); $ci->router->class // gets class name (controller) $ci->router->method // gets function name (controller function)