Changeset 3418 for trunk/system/views

Show
Ignore:
Timestamp:
09/09/2008 08:58:49 AM (3 months ago)
Author:
Shadowhand
Message:

Updates to error handling:

  • Added public Kohana_Exception::$html_output, enable/disable HTML exception output
  • Added public Kohana_Exception::$trace_output, enable/disable stack trace in exception output
  • Disable HTML output when Router::find_uri detects CLI mode
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/views/kohana/error.php

    r3366 r3418  
    11<pre class="kohana_error"><a href="#show_trace"><?php echo $code ?></a>: <code><?php echo $error ?></code> [ <strong><?php echo $file ?></strong>, line <strong><?php echo $line ?></strong> ]</pre> 
    2 <?php if ( ! empty($trace)): ?> 
    32<div class="kohana_trace"> 
    43<?php if ( ! empty($source)): ?> 
    54<div class="source"><a href="#show_source">Source</a><pre><?php echo $source ?></pre></div> 
    65<?php endif ?> 
     6<?php if ( ! empty($trace)): ?> 
    77<pre class="trace"><?php echo implode("\n", $trace) ?></pre> 
     8<?php endif ?> 
    89</div> 
    9 <?php endif ?>