Alphapager demo

Showing 161-180 of 611 items.
#Last NameFirst NameBornDied
161EllisBret Easton1964/03/07
162EllroyJames1948/03/04
163EmersonKeith1944/11/022016/03/11
164EmmanuelTommy1955/05/31
165EnoBrian1948/05/15
166EnzensbergerHans Magnus1929/11/11
167ErasmusDesiderius1466/10/181536/07/02
168EscherM.C.1898/06/171972/03/27
169EulerLeonhard1707/04/151783/09/18
170EustacheJean1938/03/171981/11/04
171EuweMax1901/05/201981/11/27
172EverlyDon1937/02/012021/08/21
173EverlyPhil1939/01/192014/01/03
174FalkPeter1927/09/162011/06/23
175FaraldoClaude1936/03/232008/01/29
176FassbinderRainer Werner1946/05/311982/06/10
177FeldmanMarty1933/07/081982/12/02
178FelliniFederico1920/01/201993/10/31
179FenderLeo1909/08/101991/03/21
180FerréolAndréa1947/01/06

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.