Gridview With Dataprovider => Array

Hi everbody!

Can i use "dataProvider" attribute in GridView with its value as an array ?

GridView::widget([…,‘dataProvider’ => [],…]).

I’d like to assign value to dataProvide attribute as an array, isn’t from ActiveDataProvider class.

Anybody have any ideas ? Thanks.

I suspect you should use ArrayDataProvider.

Hi Keith!

Thank you for your reply!

Great!It is true with my ideas.