fatal_error.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * For full copyright and license information, please see the LICENSE.txt
  8. * Redistributions of files must retain the above copyright notice.
  9. *
  10. * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  11. * @link https://cakephp.org CakePHP(tm) Project
  12. * @since 2.2.0
  13. * @license https://opensource.org/licenses/mit-license.php MIT License
  14. * @var \Cake\Core\Exception\CakeException $error
  15. */
  16. $this->layout = 'dev_error';
  17. $this->assign('title', 'Fatal Error');
  18. $this->assign('templateName', 'fatal_error.php');
  19. $this->start('subheading');
  20. ?>
  21. <strong>Error</strong>
  22. <?= h($error->getMessage()) ?>
  23. <br>
  24. <br>
  25. <strong>File</strong>
  26. <?= h($error->getFile()) ?>
  27. <br><br>
  28. <strong>Line</strong>
  29. <?= h($error->getLine()) ?>
  30. <?php $this->end() ?>
  31. <?php
  32. $this->start('file');
  33. if (extension_loaded('xdebug')):
  34. xdebug_print_function_stack();
  35. endif;
  36. $this->end();