Исправление багов

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2021-02-24 22:07:12 +10:00
parent 78ae20cdac
commit 301b2945bc

View File

@ -4,7 +4,8 @@ declare(strict_types=1);
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use app\models\AccountForm;
use app\models\Account;
?>
@ -25,7 +26,7 @@ use app\models\AccountForm;
]
]);
$model = $model ?? new AccountForm;
$model = $model ?? new Account;
?>
<?php $form->field($model, 'mail', ['enableLabel' => false, 'options' => ['class' => 'mb-2']])->textInput(['autofocus' => true, 'placeholder' => $model->getAttributeLabel('mail')]) ?>