OSDN Git Service

camephp
[umumu/umumu.git] / src / Template / Error / error500.ctp
1 <?php
2 use Cake\Core\Configure;
3 use Cake\Error\Debugger;
4
5 if (Configure::read('debug')):
6     $this->layout = 'dev_error';
7
8     $this->assign('title', $message);
9     $this->assign('templateName', 'error500.ctp');
10
11     $this->start('file');
12 ?>
13 <?php if (!empty($error->queryString)) : ?>
14     <p class="notice">
15         <strong>SQL Query: </strong>
16         <?= h($error->queryString) ?>
17     </p>
18 <?php endif; ?>
19 <?php if (!empty($error->params)) : ?>
20         <strong>SQL Query Params: </strong>
21         <?= Debugger::dump($error->params) ?>
22 <?php endif; ?>
23 <?php
24     echo $this->element('auto_table_warning');
25
26     if (extension_loaded('xdebug')):
27         xdebug_print_function_stack();
28     endif;
29
30     $this->end();
31 endif;
32 ?>
33 <h2><?= __d('cake', 'An Internal Error Has Occurred') ?></h2>
34 <p class="error">
35     <strong><?= __d('cake', 'Error') ?>: </strong>
36     <?= h($message) ?>
37 </p>