fatal_error.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. */
  15. $this->layout = 'dev_error';
  16. $this->assign('title', 'Fatal Error');
  17. $this->assign('templateName', 'fatal_error.php');
  18. $this->start('subheading');
  19. ?>
  20. <strong>Error</strong>
  21. <?= h($error->getMessage()) ?>
  22. <br>
  23. <br>
  24. <strong>File</strong>
  25. <?= h($error->getFile()) ?>
  26. <br><br>
  27. <strong>Line</strong>
  28. <?= h($error->getLine()) ?>
  29. <?php $this->end() ?>
  30. <?php
  31. $this->start('file');
  32. if (extension_loaded('xdebug')):
  33. xdebug_print_function_stack();
  34. endif;
  35. $this->end();