error400.php 1003 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * @var \App\View\AppView $this
  4. * @var \Cake\Database\StatementInterface $error
  5. * @var string $message
  6. * @var string $url
  7. */
  8. use Cake\Core\Configure;
  9. use Cake\Error\Debugger;
  10. $this->layout = 'error';
  11. if (Configure::read('debug')) :
  12. $this->layout = 'dev_error';
  13. $this->assign('title', $message);
  14. $this->assign('templateName', 'error400.php');
  15. $this->start('file');
  16. ?>
  17. <?php if (!empty($error->queryString)) : ?>
  18. <p class="notice">
  19. <strong>SQL Query: </strong>
  20. <?= h($error->queryString) ?>
  21. </p>
  22. <?php endif; ?>
  23. <?php if (!empty($error->params)) : ?>
  24. <strong>SQL Query Params: </strong>
  25. <?php Debugger::dump($error->params) ?>
  26. <?php endif; ?>
  27. <?php
  28. echo $this->element('auto_table_warning');
  29. $this->end();
  30. endif;
  31. ?>
  32. <h2><?= h($message) ?></h2>
  33. <p class="error">
  34. <strong><?= __d('cake', 'Error') ?>: </strong>
  35. <?= __d('cake', 'The requested address {0} was not found on this server.', "<strong>'{$url}'</strong>") ?>
  36. </p>