Merge branch 'master' of feistymeow.org:feisty_meow
[feisty_meow.git] / production / example_apps / zippy_maps / src / Template / Error / error500.ctp
1 <?php
2 use Cake\Core\Configure;
3 use Cake\Error\Debugger;
4
5 $this->layout = 'error';
6
7 if (Configure::read('debug')):
8     $this->layout = 'dev_error';
9
10     $this->assign('title', $message);
11     $this->assign('templateName', 'error500.ctp');
12
13     $this->start('file');
14 ?>
15 <?php if (!empty($error->queryString)) : ?>
16     <p class="notice">
17         <strong>SQL Query: </strong>
18         <?= h($error->queryString) ?>
19     </p>
20 <?php endif; ?>
21 <?php if (!empty($error->params)) : ?>
22         <strong>SQL Query Params: </strong>
23         <?php Debugger::dump($error->params) ?>
24 <?php endif; ?>
25 <?php if ($error instanceof Error) : ?>
26         <strong>Error in: </strong>
27         <?= sprintf('%s, line %s', str_replace(ROOT, 'ROOT', $error->getFile()), $error->getLine()) ?>
28 <?php endif; ?>
29 <?php
30     echo $this->element('auto_table_warning');
31
32     if (extension_loaded('xdebug')):
33         xdebug_print_function_stack();
34     endif;
35
36     $this->end();
37 endif;
38 ?>
39 <h2><?= __d('cake', 'An Internal Error Has Occurred') ?></h2>
40 <p class="error">
41     <strong><?= __d('cake', 'Error') ?>: </strong>
42     <?= h($message) ?>
43 </p>