Difference between #8 and #9 of
Adding a date range search for CGridView the easy way

Revision #9 has been created by mikewalen on Nov 21, 2013, 12:42:17 AM with the memo:

Acknowledge tip from yiimike
« previous (#8)

Changes

Title unchanged

Adding a date range search for CGridView the easy way

Category unchanged

Tips

Yii version unchanged

Tags unchanged

search, date, date range, date range filter, CGridView

Content changed

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


 
**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
),
//...
),
));
?>
```
[...]
6 0
11 followers
Viewed: 42 091 times
Version: 1.1
Category: Tips
Written by: mikewalen
Last updated by: mikewalen
Created on: Mar 5, 2013
Last updated: 10 years ago
Update Article

Revisions

View all history