Wiki

Articles in category "tips", sorted by date (updated)X
Displaying 41-50 of 149 result(s).

FORM with GET method causes repeated stacking of URL Parameters

Updated about a year ago by tophTips2 comments – viewed 7,363 times – ( +39 / -4 ) – version all
You are using an ActiveForm in yii (both v1.x or 2), with a GET method like below:

Yii2 default values for Index data Provider

Updated about a year ago by CTalaTips1 comment – viewed 4,436 times – ( +2 ) – version 2.0
Guys,

Update Gridview with Dropdown Selection

Updated about a year ago by lgastmansTips0 comments – viewed 5,490 times – ( +3 ) – version 1.1
I recently worked on updating the content of a gridview based on the selection of a dropdown menu. I thought I should share it in the forum...

Debugging CActiveRecord failed save() attempts

Updated about a year ago by BoazTips0 comments – viewed 13,808 times – ( +5 ) – version 1.1
When you're filling up a form of a CActiveRecord (using CActiveForm for example), usually you'll construct your code so that in case of validation error you'll get back the form with the error displayed back to you, typically when CActiveForm.errorSummary() is used. This is how its done by Gii.

An Easy Solution for Dependent dropDownList Using AJAX

Updated about a year ago by Kostas Apazidis (KonApaz)Tips10 comments – viewed 61,651 times – ( +13 / -1 ) – version 1.1
Sometimes new Yii guys face problem to manage dependent dropDownList using AJAX. I am going to discuss an easy solution about this issue.

Yiistrap TbHtml::navbarSearchForm

Updated about a year ago by CeBeTips0 comments – viewed 6,452 times – version 1.1
Hi all,

CGridView customized CCheckBoxColumn

Updated about a year ago by CeBeTips2 comments – viewed 7,715 times – ( +5 ) – version 1.1
Hi friends,

Auto-update denormalized attributes with MongoDb and Yii2

Updated about a year ago by CeBeTips0 comments – viewed 5,229 times – ( +1 ) – version 2.0
You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.

Create thermometer using rgraph

Updated about a year ago by Ankit ModiTips2 comments – viewed 5,301 times – ( +4 )
Hi friends,

1:n relations sometimes require CDbCriteria.together

Updated about a year ago by fsbTips5 comments – viewed 30,098 times – ( +16 ) – version 1.1
There are situations in which Active Record will generate nonsense queries from what a nieve Yii user might think is reasonable code. One such situation is a CActiveDataProvider using CDbCriteria to get data from parent and 1:n child table with a condition on the child table.