Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

37 строки
887B

  1. <?php
  2. /**
  3. * @var \App\View\AppView $this
  4. * @var string $message
  5. * @var string $url
  6. */
  7. use Cake\Core\Configure;
  8. use Cake\Error\Debugger;
  9. $this->setLayout('error');
  10. if (Configure::read('debug')) :
  11. $this->setLayout('dev_error');
  12. $this->assign('title', $message);
  13. $this->assign('templateName', 'error500.php');
  14. $this->start('file');
  15. ?>
  16. <?php if ($error instanceof Error) : ?>
  17. <?php $file = $error->getFile() ?>
  18. <?php $line = $error->getLine() ?>
  19. <strong>Error in: </strong>
  20. <?= $this->Html->link(sprintf('%s, line %s', Debugger::trimPath($file), $line), Debugger::editorUrl($file, $line)); ?>
  21. <?php endif; ?>
  22. <?php
  23. echo $this->element('auto_table_warning');
  24. $this->end();
  25. endif;
  26. ?>
  27. <h2><?= __d('cake', 'An Internal Error Has Occurred.') ?></h2>
  28. <p class="error">
  29. <strong><?= __d('cake', 'Error') ?>: </strong>
  30. <?= h($message) ?>
  31. </p>

Powered by TurnKey Linux.