Home > Backend Development > PHP Tutorial > 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
Release: 2016-07-11 10:21:28
Original
1348 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template