Data Providers
Data Providers
In the Pagination and Sorting sections, we have described how to allow end users to choose a particular page of data to display and sort them by some columns. Because the task of paginating and sorting data is very common, Yii provides a set of data provider classes to encapsulate it.
A data provider is a class implementing yii\data\DataProviderInterface. It mainly supports retrieving paginat