Datepager demo

Showing 1-8 of 8 items.
#StartTitle
12004/02/04Facebook founded
22004/02/25CSS2.1 becomes candidate recommendation
32004/04/01Google Gmail launched
42004/06/15First computer worm targeted at mobile phones
52004/07/13PHP 5.0 released
62004/08/19Google goes public
72004/11/09Firefox introduced
82004/12/13David Wheeler dies

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.

<?php

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'],

        'start:date',
        'title',
    ],
]); ?>