That’s the function in the corresponding Model:
public function getChildOptions () {
return CHtml::listData(ChildOptions::model()->findAll(),'id', 'description' );
}
And this is the view:
echo $form->dropDownList($model, 'childOptions_id', $model->getChildOptions());
It works wonderful, but where is my label and why is my label disappeared?
In the following case (not desired-one) the label was here:
echo $form->textFieldRow($model,'childOptions_id');
Maybe some additional information, I use Bootstrap-Extension.
Thank you…