Yii2 Alphapager performs alphabetic paging with for instance GridView
s or ListView
s.
Just use sjaakp\alphapager\ActiveDataProvider
in stead of your normal yii\dataActiveDataProvider
, and put an AlphaPager
widget in front of your GridView
, and you're running.
Likewise with sjaakp\alphapager\ArrayDataProvider
.
Alpha paging is compatible with normal pagination. You can use them together.
Requirements ¶
Yii 2.0
Important notice ¶
Yii2 Alphapager's ActiveDataProvider is only proven to work with MySQL databases. It should also work with SQLite and Cubrid, but this is not tested.
In contrast to the Yii philosophy, Yii2 Alphapager is not transparent to the database, as I'm sorry to say. Presumably, ActiveDataProvider
can be made to work with Oracle, Postgres, and MSSQL as well. If you can provide more information on using Yii2 Alphapager with other databases, I'd be glad to hear it.
good work
Thanks for this.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.