Zenf Framework not support FirePHP

For programming and general questions on Zend Framework

Zenf Framework not support FirePHP

Postby jaiswarvipin on Tue Nov 20, 2012 12:32 pm

Hi Dear,
As we know that Zend Framework is support the FirePHP but when i am trying to crate the ->group('Group Name'). it throw me error.
Can you help on same?

in Bootstrap.php
Code: Select all
public function _initLayouts(){
//FirePhp
      $writer = new Zend_Log_Writer_Firebug();
      $firephp_logger = new Zend_Log($writer);
      Zend_Registry::set('firephp_logger', $firephp_logger);
...
....
}



in the contoller file
Code: Select all
protected $_firephp_logger;
public function init()
    {
$this->_firephp_logger = Zend_Registry::get('firephp_logger');
    }

public function indexAction()
    {
     $this->_firephp_logger->trace('Login');
   $this->_firephp_logger->label('test')->log($formData, Zend_Log::INFO);
   $this->_firephp_logger->groupEnd();
}



in the indexAction it throw me error.


Thanks
Jaiswar Vipin Kumar R
jaiswarvipin
 
Posts: 2
Joined: Tue Nov 20, 2012 12:27 pm

Re: Zenf Framework not support FirePHP

Postby jaiswarvipin on Wed Nov 21, 2012 7:06 am

Hi,
As we know that Zend Framework is support the FirePHP but when i am trying to crate the ->group('Group Name'). it throw me error.
Can you help on same?

in Bootstrap.php
Code: Select all
public function _initLayouts(){
//FirePhp
      $writer = new Zend_Log_Writer_Firebug();
      $firephp_logger = new Zend_Log($writer);
      Zend_Registry::set('firephp_logger', $firephp_logger);
...
....
}



in the contoller file
Code: Select all
protected $_firephp_logger;
public function init()
    {
$this->_firephp_logger = Zend_Registry::get('firephp_logger');
    }

public function indexAction()
    {
     $this->_firephp_logger->group('Login');
   $this->_firephp_logger->label('test')->log($formData, Zend_Log::INFO);
   $this->_firephp_logger->groupEnd();
}



in the indexAction it throw me error.


Thanks
Jaiswar Vipin Kumar R
jaiswarvipin
 
Posts: 2
Joined: Tue Nov 20, 2012 12:27 pm


Return to Zend Framework

Who is online

Users browsing this forum: No registered users and 10 guests