Comparing
#6 with
#7
Revision #7 was created by
Kartik V on May 6, 2014, 12:49:40 PM.
Corrected code
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');
echo CHtml::submitButton('Find', ['class' => 'btn btn-primary']);
$this->endWidget();
```[...]