-
Notifications
You must be signed in to change notification settings - Fork 4
Fire Ignition
Fire Ignition allows you to see log messages and special messages on the fly, using Mozilla Firefox. Developed using CI 1.6.2. Probably compatible with CI 1.5.x and 1.6.x. It seems not to be compatible with CI 2.1.3
The following instructions are NOT necessary if you want to run FirePHP with CI. They allow you to quickly turn on/off FirePHP without removing existing FirePHP code in your codebase.
If you want a taste of FirePHP with CI, download the FirePHP core. Rename firePHP.class.php to Firephp.php. (CI is picky about naming.) Throw it in your /libraries folder in CodeIgniter. All done.
In your code: $this->load->library('firephp'); $this->firephp->log('ding');
Firebug (Firefox extension) FirePHP (Firebug extension) [del]PHP 5 (FirePHP library requires it)[/del] not any more see here
File:fireignition_0.1.1.zip (Fire Ignition code + example)
The complete zip with examples I couldn't find anymore. But I retrieved these files from one of my former projects. Since the preferred way to share code nowadays seems to be gists ;) https://gist.github.com/reingroot/5276177
Core
/system/application/config/fireignition.php - Config value (fireignition_enabled) to enable/disable /system/application/libraries/Firephp_fake.php - FirePHP Fake Library to disallow the library and mantain interface /system/application/libraries/MY_Controller.php - Controller extension
Example
/system/application/controllers/welcome.php - How to use
This download does not include CI or FirePHP library. You need to download CI and put this files in the application folder. Then download the firephp library from http://www.firephp.org/ and put it in application/libraries/Firephp.php
It is necesary to have Firebug + FirePHP installed on your browser. You have to set fireignition_enabled to true on the config file
$config['fireignition_enabled'] = TRUE;
and your controllers needs to extend MY_Controller instead of Controller.
Then, you will have to load the page, open firebug, go to FirePHP console and voilà, you will be facing something like [[File:fireignition_screenshot2_0.1:LIk ;.lj/k.1.gif]]
For live sites, you can enable/disabled Fire Ignition in the config file. Also, you can enable it for your IP Address using
$config['fireignition_enabled'] = $_SERVER['REMOTE_ADDR'] == '127.0.0.1';