Return to Snippet

Revision: 49311
at July 19, 2011 21:36 by Blerx


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

//make an instance of your logger you can use       
Zend_Registry::set('logger',$logger);


//Place this code where needed
$logger = Zend_Registry::get('logger');
$logger->log('This is a log message!', Zend_Log::INFO);

Initial URL

                                

Initial Description

                                

Initial Title
Code to setup FirePHP in ZendFramework

Initial Tags

                                

Initial Language
PHP