Showing 1-20 of 120 items.

What SQL-Statement creates yii?

Created 8 years ago by Necip Necip, updated 8 years ago by Necip Necip. 0 comments

The usual way to find out what Yii has created for an SQL query is to mutilate the SQL in the sourcecode and call the program again so that the SQL statement with errors is displayed. Or you can use the SQL logger, which must be switched on and off each time and logs all SQL statements, which leads to an enormous slowdown in program execution and decelerates your workflow.

0 0
1
Viewed: 16 843 times
Version: 1.1
Category: Tips

FORM with GET method causes repeated stacking of URL Parameters

Created 12 years ago by Kartik V Kartik V, updated 12 years ago by toph toph. 3 comments

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

7 2
41
Viewed: 68 759 times
Version: all
Category: Tips