Пример #1
0
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
/**
 * @var yii\web\View $this
 * @var yii\widgets\ActiveForm $form
 * @var \frontend\models\User $model
 */
$this->title = 'Signup';
$this->params['breadcrumbs'][] = $this->title;
$mail = Yii::$app->mail->messageConfig['from'];
?>
<div class="site-signup alert alert-danger">
    <h1>Could not complete registration</h1>

    <p>You either supplied an invalid confirmation link or the link has meanwhile expired.
    Please contact our support under <?php 
echo Html::mailTo(key($mail), current($mail));
?>
.
    </p>

</div>
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var yii\web\View $this */
$this->title = 'Signup';
$this->params['breadcrumbs'][] = $this->title;
$params = Yii::$app->params;
?>
<div class="site-signup alert alert-danger">
    <h1>Could not complete registration</h1>

    <p>You either supplied an invalid confirmation link or the link has meanwhile expired.
    Please contact our support under <?php 
echo Html::mailTo($params['support.name'], $params['support.email']);
?>
.
    </p>

</div>