Answer the question
In order to leave comments, you need to log in
{Yii} multiple checkboxes?
There is such task - to write down a bitmask in basis.
that is, we have a
rotor, stator, motor
+ - +
will be written
101
while the
rotor, stator, motor
+ + -
will be written
110
I think the idea is clear.
how to implement it? so far so far
<?php echo $form->checkBox($model,'estado', array('checked'=>'checked')); ?>
<div class="row">
<?php echo $form->labelEx($model,'m_complect'); ?>
<?php echo $form->textField($model,'m_complect',array('size'=>11,'maxlength'=>11)); ?>
<?php echo $form->error($model,'m_complect'); ?>
</div>
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