Activedataprovider Set Params From View

hi,

i have in controller this cod


 $dataProvider = new ActiveDataProvider([

            'query' => RatingComments::find()->where(['type' => 'comment'])->all(),

            'pagination' => [

                'pageSize' => 20,

            ],

        ]);


       return $this->render('index', [

           'dataProvider' => $dataProvider

       ]);

and view


<?php echo ListView::widget([

               'dataProvider' => $dataProvider,

               'id' => "clv-board-",

               'summary' => "",

               'itemOptions' => ['class' => 'item col-md-3'],

               'itemView' => '_negocio',

            ]);?>

I want to be able to pass a parameter from view to new ActiveDataProvider(…) why i have more conditions in where clause.