Skip to content
Advertisement

Tag: activerecord

How do I add a filter on yii2 models

I have a query used to read data from a view. I am then applying a non related sql filter to this, to take out the models I don’t need and then returning an arrayDataProvider instance. The filter I am applying is the promotion period. However, when I pass query params to this search model, it doesn’t work. How do

Advertisement