Multiple Yii2 dataProviders for a single grid view

时间:2017-06-19 13:55:06

标签: gridview yii2 dataprovider

Do any one knows a way to load a yii2 gridview with multiple activeDataProviders?

1 个答案:

答案 0 :(得分:1)

使用多个数据数组,然后使用array_merge($ arr1,$ arr2,...)并将结果数组传递给arrayDataProvider。