Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?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