<?php
/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */
use yii\helpers\Html;

$this->context->layout = false;
$this->title = $name;
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?= Html::encode($this->title) ?></title>
    <link href="<?= STATIC_URL ?>/ui/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?= STATIC_URL ?>/ui/font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="<?= STATIC_URL ?>/ui/css/animate.css" rel="stylesheet">
    <link href="<?= STATIC_URL ?>/ui/css/style.css" rel="stylesheet">
</head>
<body class="gray-bg">
<div class="middle-box text-center animated fadeInDown" style="margin-top:100px;">
    <h1><?= Yii::$app->getResponse()->getStatusCode() ?></h1>
    <h3 class="font-bold"><?= $name ?></h3>
    <div class="error-desc"><?= nl2br(Html::encode($message)) ?>  <a href="/">返回首页</a></div>
</div>
<!-- Mainly scripts -->
<script src="<?= STATIC_URL ?>/ui/js/jquery.1.9.1.min.js"></script>
<script src="<?= STATIC_URL ?>/ui/js/bootstrap.min.js"></script>
</body>
</html>
