andydkcat / yii2-custom-linkpager

Demo for creating custom Yii2 link pager widget.
2 stars 2 forks source link

Yii2 Custom Pager Widget

A demo of creating custom Yii2 link pager widget which extends yii\widgets\LinkPager class.

Usage

  1. Download or clone all files.

  2. Copy all files into corresponding folder of your Yii2 app.

    $ cd yii2-custom-linkpager
    $ cp controllers/* YOUR_APP/controllers/
    $ cp -r views/* YOUR_APP/views/
    $ cp -r widgets YOUR_APP/
  3. Update namespace of PHP classes into your own namespace.

  4. Access and test the demo by url: http://YOUR_HOST_OR_APP/index.php?r=test/test.

Tutorial

Step by step tutorial of creating custom pager widget is also available.