I have a size table and i am displaying a dropdown list through relation i have fld_id,fld_width,and fld_height in size i want to show the drop down whose value will be the record fld_id and the dropdown will show value like fld_width.‘x’.fld_height
my view code is
<?=
$form->field($model, 'fld_size_id')->dropDownList(ArrayHelper::map(Size::find()->all(), 'fld_id','fld_width'),['style'=>'width:25%;', 'prompt'=>'-Choose a Size-']);
?>
i can only give fld_width or fld_height in map function how can i do this to show the values like
fld_width.' x '.fld_height