Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question