M
M
Maxim Grechushnikov2014-12-09 21:47:21
Yii
Maxim Grechushnikov, 2014-12-09 21:47:21

Yii2: How to display input hidden?

Googol banned me.
While studying the code, I came up with this

<?=$form->field($doctorSearch, "specialization_id")->hiddenInput();

but this infection generates a label for me

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Kudinov, 2014-12-09
@Frostealth

<?= $form->field($doctorSearch, "specialization_id")->hiddenInput()->label(false) ?>

M
Maxim Grechushnikov, 2014-12-09
@maxyc_webber

What, are you serious?
is this a solution???

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question