I have a payment model with a payment_time field (it is mysql datetime). My question is in CGridView, how do I list only payment made in current month by default? Of course, user still can use "Advanced Search" in _search.php to find all other records. Please shred some light! Thank you!
Why don’t you try this extension, remember-filter-gridview I found it useful, and you can set default value to this month, but still able to see others easily.