Searchmodel will get now values

Hi guys,
I try searching for records in database using following code in Controller.

public function actionIndex() {
    $searchModel = new KopfSearch();
    $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
    print_r('<br><br><br>');
    var_dump(Yii::$app->request->queryParams);
    return $this->render('index', [
                'searchModel' => $searchModel,
                'dataProvider' => $dataProvider,
    ]);
}

var_dump(Yii::$app->request->queryParams);
always will be an empty array. Why? Here is form:

<?php

use yii\helpers\Html;
use kartik\widgets\ActiveForm;
?>

<div class="form-kopf-search">

    <?php
    $form = ActiveForm::begin([
                'id' => 'dynamic-form',
                'type' => ActiveForm::TYPE_VERTICAL,
                'formConfig' => [
                    'showLabels' => true
    ]]);
    ?>

    <?= $form->field($model, 'id', ['template' => '{input}'])->textInput(['style' => 'display:none']); ?>
    <?= $form->field($model, 'data')->textarea(['rows' => 6]) ?>
    <?=
    $form->field($model, 'user_id')->widget(\kartik\widgets\Select2::classname(), [
        'data' => \yii\helpers\ArrayHelper::map(\common\models\User::find()->orderBy('id')->asArray()->all(), 'id', 'username'),
        'options' => ['placeholder' => Yii::t('app', 'Makler wählen')],
        'pluginOptions' => [
            'allowClear' => true
        ],
    ]);
    ?>

    <div class="form-group">
        <?= Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?>
        <?= Html::resetButton(Yii::t('app', 'Reset'), ['class' => 'btn btn-default']) ?>
    </div>
    <?php ActiveForm::end(); ?>
</div>

You have to add

    'method' => 'get',

Strike! Ur hint solved my problem. Nevertheless, I am confused about. Gii has generated code, which normally always has been solid basement. I will change code of Gii, so far…
Thx for ur efforts helping me. This thread can be closed as succesfully solved