<?php $form1 = ActiveForm::begin(); ?>
<div class="input-field col-md-12">
<?=$form1->field($model_log, 'email')->textInput(['class' => 'validate', 'id' => 'email', 'type' => 'email']);?>
</div>
<div class="input-field col-md-12">
<?=$form1->field($model_log, 'password')->textInput(['class' => 'validate', 'id' => 'password', 'type' => 'password']);?>
</div>
<div class="col-md-12 block-form--all-button">
<div class="col-md-3">
<?= $form1->field($model_log, 'checkClient', ['template' => '{input}{label}', 'labelOptions' => ['class' => 'checkbox-form']])
->input('checkbox', ['id' => 'checkClient'])
->label('Client');?>
</div>
<div class="col-md-3">
<?= $form1->field($model_log, 'checkExecutor', ['template' => '{input}{label}', 'labelOptions' => ['class' => 'checkbox-form']])
->input('checkbox', ['id' => 'checkExecutor'])
->label('Executor'); ?>
</div>
<div class="col-md-6 right">
<a href="">Забыли пароль?</a>
</div>
</div>
<div class="form-button col-md-12">
<?= Html::submitButton('Login', ['class' => 'button btn-blue waves-effect waves-light']) ?>
</div>
<?php $form1 = ActiveForm::end(); ?>
<? $form = ActiveForm::begin();?>
<div class="input-field col-md-12">
<?=$form->field($model_reg, 'username')->textInput(['class' => 'validate', 'id' => 'name', 'type' => 'text']);?>
</div>
<div class="input-field col-md-12">
<?=$form->field($model_reg, 'email')->textInput(['class' => 'validate', 'id' => 'email', 'type' => 'email']);?>
</div>
<div class="input-field col-md-12">
<?=$form->field($model_reg, 'password')->textInput(['class' => 'validate', 'id' => 'password', 'type' => 'password']);?>
</div>
<div class="col-md-12 block-form--all-button">
<?= $form->field($model_reg, 'agreement', ['template' => '{input}{label}', 'labelOptions' => ['class' => 'checkbox-form']])
->input('checkbox', ['id' => 'agreement'])
->label('I agree to the terms of the user agreement'); ?>
</div>
<div class="form-button col-md-12">
<?= Html::submitButton('register', ['class' => 'button btn-blue waves-effect waves-light']) ?>
</div>
<? $form = ActiveForm::end(); ?>
Вот мой контроллер: