Adding a date range search for CGridView the easy way

Comparing #8 with #9

Revision #9 was created by mikewalen mikewalen on Nov 21, 2013, 12:42:17 AM.

Acknowledge tip from yiimike

Content

[...]
));
}
?>
```


 
**PLEASE NOTE:** If you currently have a column in your grid view that is displaying the same date attribute you are range-searching on, make sure you set the 'filter' setting to false. E.g.(thank you to yiimike for this tip!) I.e.
 
[...]
'columns'=>array(
'id',
//...
array(
'name'=>'date_created',
[...]
'filter'=>false, // Set the filter to false when date range searching
),
//...
),
));
?>
```
[...]