23 lines
414B

  1. <?php
  2. use yii\helpers\Html;
  3. /* @var $this yii\web\View */
  4. /* @var $name string */
  5. /* @var $message string */
  6. /* @var $exception Exception */
  7. $this->title = $name;
  8. ?>
  9. <div class="site-error">
  10. <h1><?= Html::encode($this->title) ?></h1>
  11. <div class="alert alert-danger">
  12. <?= nl2br(Html::encode($message)) ?>
  13. </div>
  14. <p><?= Html::a("Retour à l'accueil", ['site/index']) ?></p>
  15. </div>