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) ?>






<?= $form->field($model, 'sample_text')->textArea('label'=>'') ?>



What is the right approach to hide a label?

Ok, I found the solution.


<?= $form->field($model, 'sample_text')->textArea()->label(false) ?>

Gracias, me sirvió de mucho!!!

Not related, but if you want some custom label other than model default:




<?= $form->field($model, 'sample_text')->textArea()->label('Custom Header') ?>