modules/admin/models/LoadpriceModel.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 = LoadpriceModel::find();
        $dataProvider = new ActiveDataProvider([
            'query' => $query,
        ]);
        $this->load($params);
        if (!$this->validate()) {
            return $dataProvider;
        }
        $query
            ->andFilterWhere(['like', 'id', $this->id])
            ->andFilterWhere(['like', 'supliers', $this->supliers])
            ->andFilterWhere(['like', 'descript', $this->descript]);
        return $dataProvider;
    }
public function search ( $ params ) { $ query = LoadpriceModel :: find ( ) ; $ dataProvider = new ActiveDataProvider ( [ 'query' => $ query , ] ) ; $ this -> load ( $ params ) ; if ( ! $ this -> validate ( ) ) { return $ dataProvider ; } $ query -> andFilterWhere ( [ 'like' , 'id' , $ this -> id ] ) -> andFilterWhere ( [ 'like' , 'supliers' , $ this -> supliers ] ) -> andFilterWhere ( [ 'like' , 'descript' , $ this -> descript ] ) ; return $ dataProvider ; }
Creates data provider instance with search query applied
 @param array $params
Creates data provider instance with search query applied @param array $params