title: yii2: how to add fixed filter in SerachModel->search(...)
body: <p>I'm quite new to Yii and I'm facing a little problem,
  I would like to display a table already filtered adn allow the filter with query parameters string.</p>
  
  <p>I declare a new action in Controller</p>
  
  <pre><code>public function actionIndexFiltered($candidateId)
  {
      $searchModel = new CvRisorsaTitoloSearch();
      //$dataProvider = $searchModel-&gt;search(Yii::$app-&gt;request-&gt;queryParams);
  
      $dataProvider = $searchModel-&gt;search([$searchModel-&gt;formName() =&gt; ['is_cod_candidato' =&gt; $candidateId]]);
  
      return $this-&gt;render('index', [
          'searchModel' =&gt; $searchModel,
          'dataProvider' =&gt; $dataProvider,
      ]);
  }
  </code></pre>
  
  <p>This code works but it doesen't allow filter with query paramters.</p>
  
  <p>'CvRisorsaTitolo' is a "many to many" table with other information,
  and 'is_cod_candidato' is a field of 'CvRisorsaTitolo'.</p>
  
  <p>Hiow can I combine my filter and filter of query parameters ion other fileds "Yii::$app->request->queryParams".</p>
  
  <p>Can anyone help me? </p>