Answer the question
In order to leave comments, you need to log in
Why is the checkbox not accepting its own template?
In the registration in the label checkbox'a in the template I inserted a link. displayed correctly and worked
<?= $form->field($model, 'checkbox')
->checkbox([
'labelOptions' => [
'class' => 'checkbox-inline'
],
'label' => ' Я согласен(а) с',
'template' => "{input}{label} <a href=\'#\'>условиями пользовательского соглашения</a>",
'onchange' => "document.getElementById('submit').disabled = !this.checked",
'disabled' => false
]); ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question