Home  >  Article  >  Backend Development  >  How does yii2 paging return data according to the paging parameter page setting? If it is empty, nothing will be returned.

How does yii2 paging return data according to the paging parameter page setting? If it is empty, nothing will be returned.

WBOY
WBOYOriginal
2016-07-11 10:21:281298browse

yii2 combines ActiveDataProvider paging to return data according to the paging parameter page setting. If it is empty, nothing will be returned. For example, page=5 has no data on this page because it only has 3 pages of data at most. Does anyone know how to do this? ? Thank you

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn