Wiki

Articles tagged with "defaults"X
Displaying 1-1 of 1 result(s).

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

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