Skip to content

Commit

Permalink
Add log to Firebug
Browse files Browse the repository at this point in the history
  • Loading branch information
abtris committed Mar 4, 2010
1 parent b75e694 commit 3efc276
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 44 deletions.
11 changes: 10 additions & 1 deletion application/controllers/IndexController.php
Expand Up @@ -10,7 +10,16 @@ public function init()

public function indexAction()
{
// action body
// writer
$writer = new Zend_Log_Writer_Firebug();
// log
$log = new Zend_Log($writer);

// messages
$log->log($_REQUEST, Zend_Log::ERR);
$log->log($_ENV, Zend_Log::ALERT);
$log->log($_SERVER, Zend_Log::ALERT);

}


Expand Down
44 changes: 1 addition & 43 deletions application/views/scripts/index/index.phtml
@@ -1,43 +1 @@
<style>
a:link,
a:visited
{
color: #0398CA;
}

span#zf-name
{
color: #91BE3F;
}

div#welcome
{
color: #FFFFFF;
background-image: url(http://framework.zend.com/images/bkg_header.jpg);
width: 600px;
height: 400px;
border: 2px solid #444444;
overflow: hidden;
text-align: center;
}

div#more-information
{
background-image: url(http://framework.zend.com/images/bkg_body-bottom.gif);
height: 100%;
}
</style>
<div id="welcome">
<h1>Welcome to the <span id="zf-name">Zend Framework!</span></h1>

<h3>This is your project's main page</h3>

<div id="more-information">
<p><img src="http://framework.zend.com/images/PoweredBy_ZF_4LightBG.png" /></p>
<p>
Helpful Links: <br />
<a href="http://framework.zend.com/">Zend Framework Website</a> |
<a href="http://framework.zend.com/manual/en/">Zend Framework Manual</a>
</p>
</div>
</div>
<h1>Firebug tests</h1>

0 comments on commit 3efc276

Please sign in to comment.