Skip to content

Commit

Permalink
Changing default views for the new error notices behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrice Luraine committed Jul 2, 2009
1 parent baf841c commit 7286a68
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
15 changes: 15 additions & 0 deletions lib/limonade/views/_notices.html.php
@@ -0,0 +1,15 @@
<? if(!empty($notices)): ?>
<div class="lim-debug lim-notices">
<h4> &#x2192; Notices and warnings</h4>
<dl>
<? $cpt = 1; foreach($notices as $notice): ?>
<dt>[<?=$cpt.'. '.error_type($notice['errno'])?>]</dt>
<dd>
<?=$notice['errstr']?> in <strong><code><?=$notice['errfile']?></code></strong>
line <strong><code><?=$notice['errline']?></code></strong>
</dd>
<? $cpt++; endforeach; ?>
</dl>
<hr>
</div>
<? endif; ?>
5 changes: 4 additions & 1 deletion lib/limonade/views/default_layout.php
Expand Up @@ -5,6 +5,9 @@
<title>Limonade, the fizzy PHP micro-framework</title>
</head>
<body>
<?=$content;?>
<?= error_notices_render(); ?>
<div id="content">
<?=$content;?>
</div>
</body>
</html>

0 comments on commit 7286a68

Please sign in to comment.