Skip to content

Instantly share code, notes, and snippets.

@willmendesneto
Created February 24, 2013 22:25
Show Gist options
  • Save willmendesneto/5025995 to your computer and use it in GitHub Desktop.
Save willmendesneto/5025995 to your computer and use it in GitHub Desktop.
<?php
class DisplayHook
{
public function captureOutput()
{
$this->CI =& get_instance();
$output = $this->CI->output->get_output();
if (ENVIRONMENT != 'testing') {
echo $output;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment