2 use Cake\Core\Configure;
3 use Cake\Error\Debugger;
5 if (Configure::read('debug')):
6 $this->layout = 'dev_error';
8 $this->assign('title', $message);
9 $this->assign('templateName', 'error500.ctp');
13 <?php if (!empty($error->queryString)) : ?>
15 <strong>SQL Query: </strong>
16 <?= h($error->queryString) ?>
19 <?php if (!empty($error->params)) : ?>
20 <strong>SQL Query Params: </strong>
21 <?= Debugger::dump($error->params) ?>
24 echo $this->element('auto_table_warning');
26 if (extension_loaded('xdebug')):
27 xdebug_print_function_stack();
33 <h2><?= __d('cake', 'An Internal Error Has Occurred') ?></h2>
35 <strong><?= __d('cake', 'Error') ?>: </strong>