Example #1
0
function displayError($errstr, $errfile, $errline)
{
    ?>
   <div class="phperror">
      <p><?php 
    echo $errstr;
    ?>
</p>
      <p>file: <?php 
    echo $errfile;
    ?>
 line <?php 
    echo $errline;
    ?>
</p>
      <?php 
    Html_Plugin::toggleBox('backtrace', Html_Plugin::p(debug_backtrace()));
    ?>
   </div>
   <?php 
}
Example #2
-1
 public function pcatch($e)
 {
     if (Config::$DEBUG == false) {
         // do some log stuff;
         die;
     }
     $content = '<div class="phperror" style="text-align:left;">';
     $h = new Html_Plugin();
     $content .= $h->p($e->getTrace());
     $content .= '</div>';
     echo 'Failed SQL: ' . $e->getMessage() . '<br/><br/>';
     Html_Plugin::toggleBox('debug backtrace', $content);
     return false;
 }