0
난했습니다과 같이 드롭 다운리스트 작성 :YII2 광고 html 태그는 드롭 다운리스트하는
<?= $form->field($model, 'doctor_id')->widget(select2::className(),[
'data'=> arrayhelper::map(\app\models\doctors::find()->asArray()->all(),'doctor_id',
function($model, $defaultValue) {
return $model['doctor_name'].' | '. $model['doctor_id'].' | '. $model['phone1'] ;
}),
// 'languge'=>'en',
'options'=>['placeholder'=>'... إختر اسم الطبيب','class' => 'yuorClass'],
'pluginOptions'=>[
'allowClear'=>true
],
])?>
그래서 내가 여기
의 사진으로이$model['doctor_name'].' - '. $model['doctor_id'].' <br> '. $model['phone1'] ;
처럼 <br>
처럼 행 사이에 HTML 태그를 추가해야