<?= $form->field($client, 'phone')->widget(Select2::className(), [
'data' => ArrayHelper::map(Client::find()->all(), 'id', 'phone', 'fio'),
'value' => $_GET['phone'],//здесь должна отобразиться значение 81111111111
'options' => ['placeholder' => 'Введите номер телефона'],
'pluginOptions' => [
'allowClear' => true,
'language' => [
'noResults' => new JsExpression('function () { return "<a href=\"'. Url::to(['client/create']).'\">Добавить клиента</button>"; }'),
],
'escapeMarkup' => new JsExpression('function (markup) {
return markup;
}')
],
])?>
ArrayHelper::map(Client::find()->all(), 'id', 'phone', 'fio'),
[
'fio1'=>['id1'=>'phone1','id2'=>'phone2'],
'fio2'=>['id3'=>'phone3','id4'=>'phone4'],
]
ArrayHelper::map(Client::find()->all(), 'phone', 'phone'),