Hide label for input field

前端 未结 7 870
孤街浪徒
孤街浪徒 2021-02-06 23:04

I am trying to hide the label for a specific field in _form.php without success.

I have tried couple of variation like, but none is working:



        
相关标签:
7条回答
  • 2021-02-06 23:50
    <?= $form->field($model, 'password', [
        'inputOptions'=>[
            'class'=>'form-control',
            'placeholder'=>'Password'
        ]
    ])->passwordInput()->label(false); ?>
    
    0 讨论(0)
提交回复
热议问题