Skip to content

Instantly share code, notes, and snippets.

@emamut
Forked from olivopablo/firephp_helper.php
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save emamut/02bb1433e04df81b19ea to your computer and use it in GitHub Desktop.

Select an option

Save emamut/02bb1433e04df81b19ea to your computer and use it in GitHub Desktop.
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
require_once APPPATH . 'third_party/firephp/lib/FirePHPCore/FirePHP.class.php'; // path to your firephp libs
function fire_print($type, $msg, $optional_label = '')
{
//output only when on development environtment. set on index.php
if (ENVIRONMENT == 'development')
{
$firephp = FirePHP::getInstance(true);
if($type=="json"){
$type = 'info';
$msg = json_decode($msg);
}
$firephp->$type($msg, $optional_label);
}
}
function fire_trace($trace_label = '')
{
//output only when on development environtment. set on index.php
if (ENVIRONMENT === 'development')
{
$firephp = FirePHP::getInstance(true);
$firephp->trace($trace_label);
}
}
/* End of file fire_debug_helper.php */
/* Location: ./application/helpers/seo_helper.php */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment