2017 © Pedro PelĆ”ez
 

yii2-extension yii2-pager

Pager for Yii2

image

chiliec/yii2-pager

Pager for Yii2

  • Tuesday, February 3, 2015
  • by Chiliec
  • Repository
  • 5 Watchers
  • 5 Stars
  • 174 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Pager Widget for Yii 2

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines. Based on Bootstrap Pager., (*2)

Usage

<?php
    echo \chiliec\pager\Pager::widget([
        'tableName' => $model->tableName(),
        'currentId' => $model->id, // current primary key
        'path' => 'story/view', // path for link
        // optional fields in most cases
        'primaryKey' => 'id', // name of primary key column
        'title' => 'title', // name of title column
        'additionalŠ”ondition' => 'published = 1', // additional SQL-condition
        'cacheTime' => 3600, // time for cache results
        'navOptions' => [],
        'listOptions' => ['class' => 'pager'],
        'prevOptions' => ['class' => 'pull-left', 'rel' => 'prev'],
        'nextOptions' => ['class' => 'pull-right', 'rel' => 'next'],
    ]); 
?>

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist chiliec/yii2-pager "~2.0"

or add, (*5)

"chiliec/yii2-pager": "~2.0"

to the require section of your composer.json file., (*6)

The Versions

03/02 2015

dev-master

9999999-dev

Pager for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

yii pager next link

01/02 2015

2.0

2.0.0.0

Pager for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

yii pager next link

01/01 2015

1.0

1.0.0.0

Pager for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

yii pager next link