D
D
des1roer2015-05-06 15:02:12
Yii
des1roer, 2015-05-06 15:02:12

Yii innerhtml how to implement?

I am creating a complex input form. Most of the fields from the pivot table (many-to-many). Accordingly, I cannot use $model->param. How to pass some value to textfield?
Similar to checkBoxList

$type_list = CHtml::listData(Element::model()->findAll(), 'id', 'name');
echo CHtml::checkBoxList('im_id2', $arr_bit, $type_list, array(
                'template' => '{input} {labelTitle}',
                'class' => 'chclass',
                    )
            );

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Grechushnikov, 2015-05-07
@maxyc_webber

these are two entities, two entities and output

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question