hi my question is how can i get paginated data in yii 2.0?
can anyone have solution for that?i don’t want to use widgets.
hi my question is how can i get paginated data in yii 2.0?
can anyone have solution for that?i don’t want to use widgets.
What do you want to do with the paginated data? The normal use case is to display x records on the screen and then page through others. If you want to do this, why not use a widget, everything is done for you, almost zero coding?
Use a dataProvider. You can loop through the data without passing it to a widget using foreach().