Wiki articles in category Tips tagged with "form"

Showing 1-2 of 2 items.

Create Form With DynamicModel

Created 6 years ago by Misbahul D Munir, updated 6 years ago by Misbahul D Munir.

In yii2 we can create form without create FormModel. Here we go

3 0
8 followers
Viewed: 40 111 times
Version: 2.0
Category: Tips
Tags: form, model, yii2

FORM with GET method causes repeated stacking of URL Parameters

Created 7 years ago by Kartik V, updated 7 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: 54 124 times
Version: all
Category: Tips