Skip to content

Commit

Permalink
build out the CI notifier a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
rich committed Jan 24, 2010
1 parent 12c7768 commit f7b822f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Services/Hoptoad/CodeIgniter.php
@@ -1,3 +1,22 @@
<?php
class Services_Hoptoad_CodeIgniter extends Services_Hoptoad {
var $ci;

function ci() {
if (isset($this->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;
}
}

0 comments on commit f7b822f

Please sign in to comment.