Wiki articles tagged with "get"

Showing 1-4 of 4 items.

Load data from internal/external source to fill form fields

Created 5 years ago by skworden, updated 5 years ago by skworden.

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
5 followers
Viewed: 24 866 times
Version: 2.0
Category: How-tos

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

Created 5 years ago by Louis Gac, updated 5 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
2 followers
Viewed: 15 518 times
Version: 2.0
Category: Tips

FORM with GET method causes repeated stacking of URL Parameters

Created 6 years ago by Kartik V, updated 6 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(); `

4 2
40 followers
Viewed: 49 028 times
Version: all
Category: Tips

Yii registry, how to use it, does it exist at all?

Created 8 years ago by dckurushin, updated 7 years ago by resurtm.

If you coming to Yii with experience with Zend Framework for example, most likely you get used to

Zend_Registry::get('paramName');
Zend_Registry::set('paramName');
6 0
9 followers
Viewed: 30 355 times
Version: 1.1
Category: How-tos