There is MyModelSearch

In the public function search($params) method

I write $query = MyTable::find() ->.... , and I receive dataProvider .

In the view in the GridView passed this dataProvider and display all the columns from the table MyTable .

For example, 40 entries are displayed in the temperature column.

How to separate the value of the Count(temperature > 10) from the GridView on the page Count(temperature > 10) ?

    1 answer 1

     echo MyTable::find()->where(['>', 'temeperature', 10])->count();