1 | <?php |
||
2 | |||
3 | /** |
||
4 | * @var bool $accountGeneratingPassword |
||
5 | * @var string $password |
||
6 | * @var bool $showPassword |
||
7 | * @var string $tokenUrl |
||
8 | */ |
||
9 | ?> |
||
10 | |||
11 | <?= \Yii::t('mail.views.user', 'Hello') . ',' ?> |
||
12 | <?= \Yii::t('mail.views.user', 'Your account on {0} has been created.', [\Yii::$app->name]) ?> |
||
13 | |||
14 | <?php if ($showPassword || $accountGeneratingPassword) : ?> |
||
15 | <?= \Yii::t('mail.views.user', 'We have generated a password for you:') ?> |
||
16 | <?= '<b>' . $password . '</b>' ?> |
||
17 | <?php endif ?> |
||
18 | |||
19 | <?php if (!empty($tokenUrl)) : ?> |
||
20 | <?= \Yii::t('mail.views.user', 'In order to complete your registration, please click the link below.') ?> |
||
21 | <?= '<b>' . $tokenUrl . '</b>' ?> |
||
22 | <?= \Yii::t('mail.views.user', 'If you cannot click the link, please try pasting the text into your browser.') ?> |
||
23 | <?php endif ?> |
||
0 ignored issues
–
show
|
|||
24 | |||
25 | <?= \Yii::t('mail.views.user', 'If you did not make this request you can ignore this email.'); |
||
26 |
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.