Hello guys In my form I got three fields which are
<?= $form->field($model, 'room_type')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'room_loc')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'room_no')->textInput(['maxlength' => true]) ?>
I just commented out the
<?= $form->field($model, 'room_loc')->textInput(['maxlength' => true]) ?>
Because I realised I didn’t need it anymore, my problem is that when I tried creating it it doesn’t save. The page just refresh then goes back to the _form.php page