public
Description: Adds the firePHP Library for FireBug Debugging.
Homepage:
Clone URL: git://github.com/newism/lg.firephp.ee_addon.git
name age message
file README.md Wed Jul 01 18:44:59 -0700 2009 Updated README to Markdown formatting. [leevigraham]
directory system/ Wed Jul 01 08:19:51 -0700 2009 Pointed documentation link to GitHub [leevigraham]
README.md

LG FirePHP

LG FirePHP is an ExpressionEngine extension that implements the FirePHP debugging framework.

FirePHP enables you to log to your Firebug console using a simple PHP method call. All data is sent via response headers and will not interfere with the content on your page. FirePHP is ideally suited for AJAX development where clean JSON and XML responses are required.

LG FirePHP was written by Leevi Graham, Technical Director of Newcastle based web design and development company Newism.

Requirements

Installation

  1. Install Firefox
  2. Install Firebug
  3. Install FirePHP
  4. Enable Firebug and the console
  5. Add your site to the allowed site in the FirePHP (firebug extension) settings.
  6. Copy system/extensions/ext.lg_fire_ext.php to your system/extensions directory
  7. Copy system/extensions/lg_firephp_ext to your system/extensions directory
  8. Copy system/language/english/lang.lg_firephp_ext.php to your system/language/english directory
  9. Enable the extension

If enabled correctly you should see some sample FirePHP output in the Firebug console.

For developers

LG FirePHP implements the FirePHP Object Oriented API.

Examples:

FB::log('Log message');
FB::info('Info message');
FB::warn('Warn message');
FB::error('Error message');

Outputs:

FireBug FirePHP output

There's also

FB::dump("Email data", $email_data);

More information: FirePHP HQ