ActiveForm
hiddenInput renders label
I'm using $form->field($model, 'somename')->hiddenInput() and I would expect that it's completely hidden. Instead, the <label> is still rendered(渲染).
解决方法
$form->field($model, 'attribute')->hiddenInput()->label(false)
hiddenInput renders label
I'm using $form->field($model, 'somename')->hiddenInput() and I would expect that it's completely hidden. Instead, the <label> is still rendered(渲染).
解决方法
$form->field($model, 'attribute')->hiddenInput()->label(false)