Search code examples
phpzend-frameworkfirebugfirephp

Zend Framework 1.9.x and Firebug


Anybody here can point me on the right direction on using firebug for logging on Zend 1.9.x ?

I am using this : (from Zend Framework Manual page)

// Place this in your bootstrap file before dispatching your front controller
$writer = new Zend_Log_Writer_Firebug();
$logger = new Zend_Log($writer);

// Use this in your model, view and controller files
$logger->log('This is a log message!', Zend_Log::INFO);

but its not working at all.


Solution

  • after making sure that you had a firephp installed you can check out these vedio for more informations about ZF and Firebug || how to work Firephp and how to debug a sample ajax request STEP BY STEP and even how to create a firebug action helper

    part 1 : http://www.zendcasts.com/debugging-zend-projects-with-firebug/2009/08/

    part 2 : http://www.zendcasts.com/custom-action-helpers-for-firebug/2009/08/

    hopefully this will help you