Wiki

Articles tagged with "defaults", sorted by ratingX
Displaying 1-1 of 1 result(s).

Search scenario (CGridView, etc.): avoid default values from database as search condition.

Created 8 months ago by le_topTips1 comment – viewed 2,676 times – ( +1 ) – version 1.1
Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.