D
D
des1roer2015-02-18 13:42:43
Yii
des1roer, 2015-02-18 13:42:43

{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')); ?>

but how to link it with the input form?
<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

1 answer(s)
D
des1roer, 2015-02-25
@des1roer

made by myself
des1roer.blogspot.ru/2015/02/yii-yii-for-dummies-c...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question