Zend Framework Source Code Snippets

Firebug View Helper

Bookmark and Share
1
2
3
4
56
7
8
9
10
class GSD_View_Helper_Fb extends Zend_View_Helper_Abstract{
 
    public function fb($message, $label=null){
        if ($label!=null) {
            $message = array($label,$message);        }
        Zend_Registry::get('logger')->err($message);
    }
 
}
1
2
3
$writer = new Zend_Log_Writer_Firebug();
$logger = new Zend_Log($writer);
                Zend_Registry::set('logger',$logger);

Comments

Olagato Olagato
2 years ago

Interesting Helper...take a look at this one:
http://smartycode.com/debugging/debugging-your-zf-application-with-firebug/

You must login before commenting on a snippet. If you do not have an account, please register.

Snippet description

A small helper to make using Firefox Firebug extension more easy.

It requires some configs in your bootstrap file.

Snippet details

Created:
gabriel solomon gabriel solomon
2 years ago
Edited:
gabriel solomon gabriel solomon
2 years ago
Revision Id:
86
Edit Message:
Initial Release
Tags:
Zend_View Zend_View _Helper Firebug
Comments:
1
Views:
1189
Points:
0 (2 votes)

History

r86

Initial Release

gabriel solomon gabriel solomon
2 years ago