<?php

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

use yii\helpers\Html;

$this->title = $name;

$url=$_SERVER['REQUEST_URI'];

if($url!='/AutoDiscover/autodiscover.xml'&& $url!='/autodiscover/autodiscover.xml'){
    if($url!='/favicon.ico'){
$message_response='Website Error Code: ' .Html::encode($this->title).'<br>Error Reason: '.nl2br(Html::encode($message)).'<br>URL: '.$url;
//Yii::$app->basic->error_reporting($message_response);
}
}
?>
<div class="site-error">

    <!--<h1><?php // Html::encode($this->title); ?></h1>-->

    <div class="alert alert-danger">
        <?= nl2br(Html::encode($message)) ?>
    </div>
 <p>
        Please contact Contact Center on 80070008 if you think this is server error.Thank you.
    </p>


</div>
