Wiki

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

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

Created 10 months ago by le_topTips1 comment – viewed 2,900 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.