Yii2 Multi DataProvider

adicione “karataserkan/yii2-multi-dataprovider”: “*”à requireseção de seu composer.jsonarquivo. use karataserkanyii2MultiDataProviderMultiDataProvider;$data1 = new ActiveDataProvider([ ‘query’ => $query,]);$data2 = new ArrayDataProvider([ ‘allModels’ => […],]);$dataProvider = new MultiDataProvider([ ‘dataProviders’ => [$data1,$data2],]);

Continuar lendo