Datepager demo

Showing 1-10 of 10 items.
#StartTitle
12008/01/01Yii project started
22008/01/22HTML5 first proposed
32008/02/15GitHub starts
42008/08/18Registration of bitcoin.org
52008/09/15Stack Overflow launched
62008/09/23Android 1.0 released
72008/10/22First Android mobile phone
82008/11/21Conficker worm detected
92008/11/27MySQL 5.1 launched
102008/12/03Yii 1.0 released

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',
    ],
]); ?>