Hi I am new to the Yii framework. Trying to figure out how to add 2 strings into one.
Right now I have textarea "description" and I want to add check boxes which will merge all into one.
Example: Someone enters into textarea "The flowers are"
Then I have a list of checkboxes
1- [x]Red
2- [ ]green
3- [x]white
4- [ ]yellow
With that selection "The flowers are Red, white" gets saved.
<?php echo $form->labelEx($model, ‘description’, array(‘class’ => ‘pull-left’, ‘style’ => ‘width:auto;’)); ?>
<div class="<?php echo $model->hasErrors('description') ? 'has-error' : '' ?>" style="margin-left: 100px;"> <?php echo $form->textArea($model, 'description', array('class' => 'form-control')); ?>
<?php echo $form->error($model, 'description', array('class' => 'help-block')); ?>
</div>