diff --git a/Services/Hoptoad/CodeIgniter.php b/Services/Hoptoad/CodeIgniter.php index 3381e16..073f7d8 100644 --- a/Services/Hoptoad/CodeIgniter.php +++ b/Services/Hoptoad/CodeIgniter.php @@ -1,3 +1,22 @@ ci)) return $this->ci; + $this->ci =& get_instance(); + return $this->ci; + } + + function action() { + return $this->ci()->router->method; + } + + function component() { + return $this->ci()->router->class; + } + + function project_path() { + return APPPATH; + } }