1 | <?php |
||
2 | |||
3 | /** |
||
4 | * @var string $tokenUrl |
||
5 | */ |
||
6 | ?> |
||
7 | |||
8 | <?= \Yii::t('mail.views.user', 'Hello') . ',' ?> |
||
9 | <?= \Yii::t('mail.views.user', 'Thank you for signing up on {0}.', [\Yii::$app->name]) . |
||
10 | \Yii::t('mail.views.user', 'In order to complete your registration, please click the link below.') ?> |
||
11 | |||
12 | <?= '<b>' . $tokenUrl . '</b>' ?> |
||
13 | |||
14 | <?= \Yii::t('mail.views.user', 'If you cannot click the link, please try pasting the text into your browser.') ?> |
||
0 ignored issues
–
show
|
|||
15 | <?= \Yii::t('mail.views.user', 'If you did not make this request you can ignore this email.'); |
||
16 |
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.