Hide label for input field
问题 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: <?= $form->field($model, 'sample_text')->textArea('label'=>false) ?> and alternate code: <?= $form->field($model, 'sample_text')->textArea('label'=>'') ?> What is the right approach to hide a label? 回答1: Ok, I found the solution. <?= $form->field($model, 'sample_text')->textArea()->label(false) ?> 回答2: Or you can modify template value for particular