Permalink
Browse files

Add log to Firebug

  • Loading branch information...
1 parent b75e694 commit 3efc2762e468c11cb01153d533ff48fa664ccf48 @abtris committed Mar 4, 2010
Showing with 11 additions and 44 deletions.
  1. +10 −1 application/controllers/IndexController.php
  2. +1 −43 application/views/scripts/index/index.phtml
@@ -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);
+
}
@@ -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.