Wiki articles tagged with "get"

Showing 1-3 of 3 items.
Created 3 years ago by skworden, updated 3 years ago by skworden.

Load data from internal/external source to fill form fields

This wiki is to show you how to use jQuery get and JSON to get data from a dropdown/any form field and fill form fields with the values instantaneously. First, I'll give example use cases of what I'm going to teach you so you can quickly see if this is for you.

1 0
Viewed: 21 085 times
Version: 2.0
Category: How-tos
Created 3 years ago by Louis Gac, updated 3 years ago by Louis Gac.

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

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: 12 960 times
Version: 2.0
Category: Tips
Created 4 years ago by Kartik V, updated 4 years ago by toph.

FORM with GET method causes repeated stacking of URL Parameters

// 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(); `

4 2
Viewed: 41 184 times
Version: all
Category: Tips