2 use Cake\Core\Configure;
3 use Cake\Error\Debugger;
5 $this->layout = 'error';
7 if (Configure::read('debug')):
8 $this->layout = 'dev_error';
10 $this->assign('title', $message);
11 $this->assign('templateName', 'error400.ctp');
15 <?php if (!empty($error->queryString)) : ?>
17 <strong>SQL Query: </strong>
18 <?= h($error->queryString) ?>
21 <?php if (!empty($error->params)) : ?>
22 <strong>SQL Query Params: </strong>
23 <?php Debugger::dump($error->params) ?>
25 <?= $this->element('auto_table_warning') ?>
27 if (extension_loaded('xdebug')):
28 xdebug_print_function_stack();
34 <h2><?= h($message) ?></h2>
36 <strong><?= __d('cake', 'Error') ?>: </strong>
37 <?= __d('cake', 'The requested address {0} was not found on this server.', "<strong>'{$url}'</strong>") ?>