DEV Community

Kev
Kev

Posted on

Yii2 ValidatePage to give empty output on wrong page number

I am trying to fetch a list of products from a table using my yii2 app and send it accross as a json to lazyload on scroll from the front end. I am using the searchmodel class. Now when data ends, last page data is being send again, i.e., if…

Top comments (0)