Alphapager demo

Showing 61-80 of 611 items.
#Last NameFirst NameBornDied
61BrechtBertolt1898/02/101956/08/14
62BreitnerGeorge Hendrik1857/09/121923/06/05
63BrelJacques1929/04/081978/10/09
64BreukerWillem1944/11/042010/07/23
65BroodHerman1946/11/052001/07/11
66BrouwerL.E.J.1881/02/271966/12/02
67BrownArthur1942/06/24
68BrownJames1933/05/032006/12/25
69BrubeckDave1920/12/062012/12/05
70BrunaDick1927/08/232017/02/16
71BugattiEttore1881/09/151947/08/21
72BukowskiCharles1920/08/161994/03/09
73BuñuelLuis1900/02/221983/07/26
74BurdonEric1941/05/01
75BurroughsWilliam S.1914/02/051997/08/02
76BushKate1958/07/30
77ByrneDavid1952/05/14
78CalatravaSantiago1951/07/28
79CalderAlexander1898/07/261976/11/11
80CaleJ.J.1938/12/052013/07/27

Yii2 Alphapager lets you do alphabetic paging in the Yii framework 2.0. On this page it is shown in it's default operation, 'out of the box'.

The relevant code involved is something like this:

<?php

use sjaakp\alphapager\ActiveDataProvider;
use sjaakp\alphapager\AlphaPager;

$query = Person::find()->orderBy('last_name, first_name');

$dataProvider = new ActiveDataProvider([
    'query' => $query,
    'alphaAttribute' => 'last_name',
]);
?>

<?= AlphaPager::widget([
    'dataProvider' => $dataProvider,
]) ?>

<?= GridView::widget([
    'dataProvider' => $dataProvider,
    'columns' => [
        ['class' => 'yii\grid\SerialColumn'],

        'last_name:ntext',
        'first_name:ntext',
        'born:date',
        'died:date',
    ],
]); ?>

A slightly more advanced example is here.