Welcome Guest, Not a member yet? Register   Sign In
Debug tool FirePHP for FireFox on CodeIgniter Framework
#1

[eluser]appleboy[/eluser]
Ref : http://blog.wu-boy.com/2010/06/07/2182/

I install FirePHP 0.3.1 on CodeIgniter 1.7.2 version, and it works very well. There are following instructions to install it.

Before installing FirePHP, please install firefox addon first.

Firebug: https://addons.mozilla.org/en-US/firefox/addon/1843
FirePHP: https://addons.mozilla.org/en-US/firefox/addon/6149

1. Download FirePHP 0.3.1
2. unzip FirePHPLibrary-FirePHPCore-0.3.1.zip
3. move fb.php and FirePHP.class.php into system/application/libraries directory.
4. rename FirePHP.class.php to Firephp.php, and fb.php to Fb.php.
5. edit Firephp.php file.

Code:
#
# Find  
#
<?php
#
# Replace
#
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
edit Fb.php file

Code:
#
# Find  
#
<?php
#
# Replace
#
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Edit config/autoload.php file

Code:
#
# Find
#
$autoload['libraries'] = array();
#
# Replace
#
$autoload['libraries'] = array("firephp", "fb");
How to use it?
Code:
function index()
{
  $a = "test";
  $array = array("a" => "1", "b" => "2");      
  //$this->firephp->log($a, 'ERROR');
  //$this->firephp->log($a, 'ERROR');    
  $this->fb->setEnabled(true);    
  $this->fb->info($array, "info");
  $this->fb->warn($array, "warn");
  $this->fb->error($array, "error");
  $this->fb->group('Test Group');
  $this->fb->log('Hello World');
  $this->fb->groupEnd();
}

referenceļ¼šHow to install FirePHP for FireFox on CodeIgniter




Theme © iAndrew 2016 - Forum software by © MyBB