- Create an Active Record Behavior that builds the criteria for the search() method and attach it to your model
- Modify the search() method of the model to merge the behavior's criteria in with the rest of the searchable attributes
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.