emailVerify-html.php 431 B

12345678910111213141516
  1. <?php
  2. use yii\helpers\Html;
  3. /** @var yii\web\View $this */
  4. /** @var common\models\User $user */
  5. $verifyLink = Yii::$app->urlManager->createAbsoluteUrl(['site/verify-email', 'token' => $user->verification_token]);
  6. ?>
  7. <div class="verify-email">
  8. <p>Hello <?= Html::encode($user->username) ?>,</p>
  9. <p>Follow the link below to verify your email:</p>
  10. <p><?= Html::a(Html::encode($verifyLink), $verifyLink) ?></p>
  11. </div>