Wiki articles in category Tips tagged with "date"

Showing 1-2 of 2 items.

Model validation for field ranges using yii2-field-range extension

Created 12 years ago by Kartik V Kartik V, updated 12 years ago by Kartik V Kartik V.

The yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

0 0
37 followers
Viewed: 32 750 times
Version: 2.0
Category: Tips

Adding a date range search for CGridView the easy way

Created 13 years ago by mikewalen mikewalen, updated 12 years ago by mikewalen mikewalen.
  1. Create an Active Record Behavior that builds the criteria for the search() method and attach it to your model
  2. Modify the search() method of the model to merge the behavior's criteria in with the rest of the searchable attributes
  3. Modify the _search form view to add the date range inputs
6 0
11 followers
Viewed: 45 611 times
Version: 1.1
Category: Tips