Wiki articles in category Tips tagged with "get"

Showing 1-2 of 2 items.

Building a search GET request with scenarios ; calling a SearchModel from URLs...

Created 7 years ago by Louis Gac, updated 7 years ago by Louis Gac.

Search Models are a very elegant and powerful way to build an Active Data Provider. If you use them a lot, you'll quickly need to use scenarios, which will lead you to a very DRY Controller code.

0 0
Viewed: 19 452 times
Version: 2.0
Category: Tips

FORM with GET method causes repeated stacking of URL Parameters

Created 8 years ago by Kartik V, updated 8 years ago by toph.

// In Yii 1.x $form = $this->beginWidget('CActiveForm', [

'id' => 'order-search-form',
'method' => 'get',

]); echo $form->textInput($searchModel, 'id'); echo CHtml::submitButton('Find', ['class' => 'btn btn-primary']); $this->endWidget(); `

6 2
Viewed: 57 440 times
Version: all
Category: Tips