Alphapager demo
Showing 161-180 of 611 items.
# | Last Name | First Name | Born | Died |
---|---|---|---|---|
161 | Ellis | Bret Easton | 1964/03/07 | — |
162 | Ellroy | James | 1948/03/04 | — |
163 | Emerson | Keith | 1944/11/02 | 2016/03/11 |
164 | Emmanuel | Tommy | 1955/05/31 | — |
165 | Eno | Brian | 1948/05/15 | — |
166 | Enzensberger | Hans Magnus | 1929/11/11 | — |
167 | Erasmus | Desiderius | 1466/10/18 | 1536/07/02 |
168 | Escher | M.C. | 1898/06/17 | 1972/03/27 |
169 | Euler | Leonhard | 1707/04/15 | 1783/09/18 |
170 | Eustache | Jean | 1938/03/17 | 1981/11/04 |
171 | Euwe | Max | 1901/05/20 | 1981/11/27 |
172 | Everly | Don | 1937/02/01 | 2021/08/21 |
173 | Everly | Phil | 1939/01/19 | 2014/01/03 |
174 | Falk | Peter | 1927/09/16 | 2011/06/23 |
175 | Faraldo | Claude | 1936/03/23 | 2008/01/29 |
176 | Fassbinder | Rainer Werner | 1946/05/31 | 1982/06/10 |
177 | Feldman | Marty | 1933/07/08 | 1982/12/02 |
178 | Fellini | Federico | 1920/01/20 | 1993/10/31 |
179 | Fender | Leo | 1909/08/10 | 1991/03/21 |
180 | Ferréol | Andréa | 1947/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.