|
|
@@ -12,26 +12,27 @@
|
|
|
* @since 2.2.0
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
|
|
*/
|
|
|
+$this->layout = 'dev_error';
|
|
|
|
|
|
+$this->assign('title', 'Fatal Error');
|
|
|
+$this->assign('templateName', 'fatal_error.ctp');
|
|
|
+
|
|
|
+$this->start('subheading');
|
|
|
?>
|
|
|
-<h2>Fatal Error</h2>
|
|
|
-<p class="error">
|
|
|
<strong>Error: </strong>
|
|
|
- <?= h($error->getMessage()); ?>
|
|
|
+ <?= h($error->getMessage()) ?>
|
|
|
<br/>
|
|
|
|
|
|
<strong>File</strong>
|
|
|
- <?= h($error->getFile()); ?>
|
|
|
+ <?= h($error->getFile()) ?>
|
|
|
<br/>
|
|
|
<strong>Line: </strong>
|
|
|
- <?= h($error->getLine()); ?>
|
|
|
-</p>
|
|
|
-<p class="notice">
|
|
|
- <strong>Notice: </strong>
|
|
|
- <?= sprintf('If you want to customize this error message, create %s', APP_DIR . DS . 'Template' . DS . 'Error' . DS . 'fatal_error.ctp'); ?>
|
|
|
-</p>
|
|
|
+ <?= h($error->getLine()) ?>
|
|
|
+<?php $this->end() ?>
|
|
|
+
|
|
|
<?php
|
|
|
-if (extension_loaded('xdebug')) {
|
|
|
+$this->start('file');
|
|
|
+if (extension_loaded('xdebug')):
|
|
|
xdebug_print_function_stack();
|
|
|
-}
|
|
|
-?>
|
|
|
+endif;
|
|
|
+$this->end();
|