Welcome Guest, Not a member yet? Register   Sign In
Is there a simple way to disable Kint and XDebug?
#3

Found it Smile

Add the following to app/Views/errors/html/error_exception.php

PHP Code:
<?php // ADD TO SHOW PHP LOG FILE
  
$logFile '../writable/logs/log-' .date('Y-m-d') .'.log';
  if( 
$tmp file_exists($logFile) ) :
    
$tmp print_rfile_get_contents($logfile), TRUE );
      echo 
'<h2>'.__file__  .'</h2>';
      echo 
'<pre>' .$tmp .'</pre>';
    die;
  endif;

// ORIGINAL error_exception.php contents below

?>
<?php $error_id 
uniqid('error'true); ?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="robots" content="noindex">
...
...
... 
Reply


Messages In This Thread
RE: Is there a simple way to disable Kint and XDebug? - by John_Betong - 07-22-2020, 07:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB