FORM with GET method causes repeated stacking of URL Parameters

Comparing #6 with #8

Content

[...]
echo Html::submitButton('Find', ['class' => 'btn btn-primary']);
ActiveForm::end();

// In Yii 1.x
$form = $this->beginWidget('CActiveForm', [
    'method' => 'get',
 
        'action' => $this->createUrl(['order/index'])
'id' => 'order-search-form',
 
    'method' => 'get'
,
]);
echo $form->textInput($searchModel, 'id');
[...]
$form = $this->beginWidget('CActiveForm', [
'method' => 'get',
'action' => $this->createUrl(
['order/index']), ]); ``` This will automatically use the action URI set above for each form submission rather than relying on the URL from the address bar. Thus the URL parameter repetition and stacking will not happen.