frontend/models/search/TransfersSearch.php
/**
     * Creates data provider instance with search query applied
     *
     * @param array $params
     *
     * @return ActiveDataProvider
     */
Creates data provider instance with search query applied
@param array $params


Creates data provider instance with search query applied @param array $params
public function search($params)
    {
        $query = self::find();
        $query->andFilterWhere($params);
        $query->addOrderBy(['transfer_created'=>SORT_DESC]);
        $dataProvider = new ActiveDataProvider([
            'query' => $query,
            'pagination' => [
                'pageSize' => 10,
            ],
        ]);
        return $dataProvider;
    }
public function search ( $ params ) { $ query = self :: find ( ) ; $ query -> andFilterWhere ( $ params ) ; $ query -> addOrderBy ( [ 'transfer_created' => SORT_DESC ] ) ; $ dataProvider = new ActiveDataProvider ( [ 'query' => $ query , 'pagination' => [ 'pageSize' => 10 , ] , ] ) ; return $ dataProvider ; }
Creates data provider instance with search query applied
 @param array $params
Creates data provider instance with search query applied @param array $params