error500.ctp 925 B

123456789101112131415161718192021222324252627
  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 0.10.0
  13. * @license https://opensource.org/licenses/mit-license.php MIT License
  14. */
  15. use Cake\Core\Configure;
  16. ?>
  17. <h2><?= __d('cake', 'An Internal Error Has Occurred.') ?></h2>
  18. <p class="error">
  19. <strong><?= __d('cake', 'Error') ?>: </strong>
  20. <?= h($message) ?>
  21. </p>
  22. <?php
  23. if (Configure::read('debug')):
  24. echo $this->element('auto_table_warning');
  25. echo $this->element('exception_stack_trace');
  26. endif;
  27. ?>