Datepager demo

Showing 1-6 of 6 items.
12005/02/08Google Maps introduced
22005/05/01OpenDocument specification released
32005/06/11Google Earth introduced
42005/06/20Jack Kilby dies
52005/08/17Google acquires Android, Inc
62005/09/05Support PHP 5.0 stops

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

The data used are the same as those from my Dateline-demo.


use sjaakp\datepager\ActiveDataProvider;
use sjaakp\datepager\DatePager;

$query = Event::find()->orderBy('start');

$dataProvider = new ActiveDataProvider([
    'query' => $query,
    'dateAttribute' => 'start',

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

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

]); ?>