FORM with GET method causes repeated stacking of URL Parameters

Comparing #7 with #8

Revision #8 was created by toph toph on May 6, 2014, 1:06:04 PM.

Fixed bug in `$this->createUrl()`. First parameter should be a string not an array.

Content

[...]
]);

// In Yii 1.x
$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.