Hello,
I would like to know how to use the $dataprovider please, what is it? and how shall I use it, do you have an example please?
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'categoryid',
'categoryname',
'parentid',
'createdon',
// 'isactive',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
Thank you,
Ben