Part of the EllisLab Network
x
 
Create New Page
 View Previous Changes    ( Last updated by Seppo )

Fire Ignition

Introduction

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.

Requirements

Firebug (Firefox extension)
FirePHP (Firebug extension)
PHP 5 (FirePHP library requires it)

Download

File:fireignition 0.1.1.zip (Fire Ignition code + example)

Included files

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

Install

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

Usage

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.1.gif

Tips

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';