Le développeur a été prévenu et va faire le nécessaire pour corriger le problème. | |||||
<?php if(isset($lineBreak) && $lineBreak): ?><br /><?php endif; ?> | |||||
N'hésitez pas à <a href="<?= $urlContact ?>">le contacter</a> | |||||
Nous avons été prévenu et allons faire le nécessaire pour corriger le problème. | |||||
<?php if(isset($lineBreak) && $lineBreak): ?><br /><?php endif; ?> N'hésitez pas nous <a href="<?= $urlContact ?>">contacter</a> | |||||
si le problème persiste. | si le problème persiste. |
margin: 0px auto; | margin: 0px auto; | ||||
float: none; | float: none; | ||||
} | } | ||||
/* line 358, ../sass/_common.scss */ | |||||
#main #content .site-error .panel .panel-body { | |||||
padding-bottom: 0px; | |||||
} | |||||
/* line 362, ../sass/_common.scss */ | /* line 362, ../sass/_common.scss */ | ||||
#main #content .site-error .panel h2 { | #main #content .site-error .panel h2 { | ||||
text-transform: none; | text-transform: none; | ||||
font-size: 25px; | font-size: 25px; | ||||
margin-top: 0px; | margin-top: 0px; | ||||
margin-bottom: 20px; | |||||
} | |||||
/* line 369, ../sass/_common.scss */ | |||||
#main #content .site-error .panel p:last-child { | |||||
margin-bottom: 0px; | margin-bottom: 0px; | ||||
padding-bottom: 0px; | |||||
} | } | ||||
/* line 370, ../sass/_common.scss */ | |||||
/* line 375, ../sass/_common.scss */ | |||||
#main #content .site-error .alert { | #main #content .site-error .alert { | ||||
padding-bottom: 5px; | padding-bottom: 5px; | ||||
} | } | ||||
/* line 373, ../sass/_common.scss */ | |||||
#main #content .site-error .alert h2 { | |||||
/* line 378, ../sass/_common.scss */ | |||||
#main #content .site-error .alert h3 { | |||||
margin-top: 5px; | margin-top: 5px; | ||||
margin-bottom: 18px; | |||||
} | } | ||||
/* line 377, ../sass/_common.scss */ | |||||
/* line 383, ../sass/_common.scss */ | |||||
#main #content .site-error .alert p { | #main #content .site-error .alert p { | ||||
margin-bottom: 15px; | margin-bottom: 15px; | ||||
} | } | ||||
/* line 381, ../sass/_common.scss */ | |||||
/* line 387, ../sass/_common.scss */ | |||||
#main #content .site-error .alert .btn { | #main #content .site-error .alert .btn { | ||||
text-decoration: none; | text-decoration: none; | ||||
} | } | ||||
/* line 392, ../sass/_common.scss */ | |||||
#main #content .site-error p.error-message { | |||||
font-weight: bold; | |||||
} | |||||
/* Paiement */ | /* Paiement */ | ||||
/* line 392, ../sass/_common.scss */ | |||||
/* line 398, ../sass/_common.scss */ | |||||
.payment-detail-remaining-surplus { | .payment-detail-remaining-surplus { | ||||
font-size: 13px; | font-size: 13px; | ||||
color: gray; | color: gray; | ||||
} | } | ||||
/* line 396, ../sass/_common.scss */ | |||||
/* line 402, ../sass/_common.scss */ | |||||
.payment-detail-remaining-surplus strong { | .payment-detail-remaining-surplus strong { | ||||
font-weight: bold; | font-weight: bold; | ||||
} | } |
.panel { | .panel { | ||||
.panel-body { | .panel-body { | ||||
padding-bottom: 0px; | |||||
} | } | ||||
h2 { | h2 { | ||||
text-transform: none; | text-transform: none; | ||||
font-size: 25px; | font-size: 25px; | ||||
margin-top: 0px; | margin-top: 0px; | ||||
margin-bottom: 20px; | |||||
} | |||||
p:last-child { | |||||
margin-bottom: 0px; | margin-bottom: 0px; | ||||
padding-bottom: 0px; | |||||
} | } | ||||
} | } | ||||
.alert { | .alert { | ||||
padding-bottom: 5px; | padding-bottom: 5px; | ||||
h2 { | |||||
h3 { | |||||
margin-top: 5px; | margin-top: 5px; | ||||
margin-bottom: 18px; | |||||
} | } | ||||
p { | p { | ||||
} | } | ||||
} | } | ||||
.actions { | |||||
//text-align: center; | |||||
p.error-message { | |||||
font-weight: bold; | |||||
} | } | ||||
} | } | ||||
<div class="site-error"> | <div class="site-error"> | ||||
<div class="row"> | <div class="row"> | ||||
<div class="col-lg-6"> | <div class="col-lg-6"> | ||||
<div class="panel panel-primary"> | |||||
<div class="panel panel-primary panel-padding-large"> | |||||
<div class="panel-body"> | <div class="panel-body"> | ||||
<h2>Erreur <?= $exception->statusCode ?></h2> | <h2>Erreur <?= $exception->statusCode ?></h2> | ||||
<p><?= nl2br(Html::encode($exception->getMessage())) ?></p> | |||||
<p class="error-message"><?= nl2br(Html::encode($exception->getMessage())) ?></p> | |||||
<p> | <p> | ||||
<span class="glyphicon glyphicon-info-sign"></span> | <span class="glyphicon glyphicon-info-sign"></span> | ||||
<?= $this->renderFile('@common/views/error_info.php', [ | <?= $this->renderFile('@common/views/error_info.php', [ | ||||
'urlContact' => Yii::$app->urlManager->createUrl('site/contact'), | 'urlContact' => Yii::$app->urlManager->createUrl('site/contact'), | ||||
'lineBreak' => true | |||||
'lineBreak' => false | |||||
]) ?> | ]) ?> | ||||
</p> | </p> | ||||
<p><?= Html::a("<i class=\"bi bi-house-door\"></i> Retour à l'accueil", ['site/index'], ['class' => 'btn btn-secondary']) ?></p> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="actions"> | |||||
<p><?= Html::a("Retour à l'accueil", ['site/index'], ['class' => 'btn btn-default']) ?></p> | |||||
</div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> |
use common\forms\ContactForm; | use common\forms\ContactForm; | ||||
use domain\Feature\Feature\Feature; | use domain\Feature\Feature\Feature; | ||||
use domain\Product\Product\Product; | use domain\Product\Product\Product; | ||||
use yii\base\ErrorException; | |||||
use yii\data\ActiveDataProvider; | use yii\data\ActiveDataProvider; | ||||
use yii\helpers\Html; | use yii\helpers\Html; | ||||
public function actionIndex() | public function actionIndex() | ||||
{ | { | ||||
throw new ErrorException('test'); | |||||
return $this->render('index'); | return $this->render('index'); | ||||
} | } | ||||
?> | ?> | ||||
<div class="site-error"> | <div class="site-error"> | ||||
<div class="alert alert-warning"> | |||||
<h2>Erreur <?= $exception->statusCode ?></h2> | |||||
<p><?= nl2br(Html::encode($exception->getMessage())) ?></p> | |||||
<div class="alert alert-danger"> | |||||
<h3>Erreur <?= $exception->statusCode ?></h3> | |||||
<p class="error-message"><?= nl2br(Html::encode($exception->getMessage())) ?></p> | |||||
<p> | <p> | ||||
<span class="glyphicon glyphicon-info-sign"></span> | <span class="glyphicon glyphicon-info-sign"></span> | ||||
<?= $this->renderFile('@common/views/error_info.php', [ | <?= $this->renderFile('@common/views/error_info.php', [ | ||||
</p> | </p> | ||||
</div> | </div> | ||||
<div class="actions"> | <div class="actions"> | ||||
<p><?= Html::a("Retour à l'accueil", ['site/index'], ['class' => 'btn btn-default']) ?></p> | |||||
<p><?= Html::a("<i class=\"bi bi-house-door\"></i> Retour à l'accueil", ['site/index'], ['class' => 'btn btn-secondary']) ?></p> | |||||
</div> | </div> | ||||
</div> | </div> |