Skip to content

Commit

Permalink
error view
Browse files Browse the repository at this point in the history
  • Loading branch information
hail committed Apr 25, 2020
1 parent 510d2c7 commit cb7e8bd
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/views/site/error.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php

/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */

use yii\helpers\Html;

$this->title = $name;
$this->params['breadcrumbs'] = [['label' => $this->title]];
?>
<div class="error-page">
<div class="error-content" style="margin-left: auto;">
<h3><i class="fas fa-exclamation-triangle text-danger"></i> <?= Html::encode($name) ?></h3>

<p>
<?= nl2br(Html::encode($message)) ?>
</p>

<p>
The above error occurred while the Web server was processing your request.
Please contact us if you think this is a server error. Thank you.
Meanwhile, you may <?= Html::a('return to dashboard', Yii::$app->homeUrl); ?>
or try using the search form.
</p>

<form class="search-form" style="margin-right: 190px;">
<div class="input-group">
<input type="text" name="search" class="form-control" placeholder="Search">

<div class="input-group-append">
<button type="submit" name="submit" class="btn btn-danger"><i class="fas fa-search"></i>
</button>
</div>
</div>
</form>
</div>
</div>

0 comments on commit cb7e8bd

Please sign in to comment.