Welcome Guest, Not a member yet? Register   Sign In
FirePHP and CodeIgniter = nothing logged.
#1

[eluser]Unknown[/eluser]
Hello, I'm new to CI and want to use FirePHP to log to Firefox.

I know there is library for this (FireIgnition)
http://www.firephp.org/Wiki/Libraries/CodeIgniter

..but in the wiki it mentions you dont need to use Fire_Ignition (link below)
http://codeigniter.com/wiki/Fire_Ignition/

Long story short. Nothing is being logged. I've used FirePHP in the past, with no problems.
#2

[eluser]luisfmgoncalves[/eluser]
I'm not sure if I get the point...

If you want to use FirePHP you just need to get the .php file from here: http://www.firephp.org/

Than:
- Add the file to your project in system/application/libraries

- In the config.php add:
Code:
$autoload['libraries'] = array('firephp');

- When you want to send something to Firefox, just do:
Code:
$this->firephp->info('This will appear in firefox');

I did these steps and is working.

Why do you need FireIgnition?

By the way, if you are sending something to firefox but after that you have a redirect or a load->view, you'll not see the output.

Luis
#3

[eluser]Unknown[/eluser]
Thanks SS,

I gave FireLogger a try instead and that's working.
I don't need (or want to use) FireIgnition that was what I was trying to say..

FirePHP:
•I autoloaded it in config.php,
•I renamed the file "firephp.php" (the tutorial says do that)
•I used the code you posted above.
•tried the PHP5 and PHP4 versions..

Didn't work for me.
#4

[eluser]Davide Bellini[/eluser]
Have you enable ".Net" panel in firebug??




Theme © iAndrew 2016 - Forum software by © MyBB