How to concatenate two columns into an autocomplete field in yii2?
- By Preneesh AV --
- 23-Apr-2019 --
- 130 Comments
$datas = Clients::find()->select(['concat(first_name,last_name) as value','first_name as label','id as id'])->asArray()->all();
$datas = Clients::find()->select(['concat(first_name,last_name) as value','first_name as label','id as id'])->asArray()->all();