Difference between #6 and #7 of
FORM with GET method causes repeated stacking of URL Parameters

Revision #7 has been created by Kartik V on May 6, 2014, 12:49:40 PM with the memo:

Corrected code
« previous (#6) next (#8) »

Changes

Title unchanged

FORM with GET method causes repeated stacking of URL Parameters

Category unchanged

Tips

Yii version unchanged

Tags unchanged

yii2, form, get, parameter, stacking, hidden, input, repeat, repetition

Content changed

[...]
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');
echo CHtml::submitButton('Find', ['class' => 'btn btn-primary']);
$this->endWidget();
```
[...]
7 2
41 followers
Viewed: 61 505 times
Version: all
Category: Tips
Written by: Kartik V
Last updated by: toph
Created on: May 6, 2014
Last updated: 9 years ago
Update Article

Revisions

View all history