2017 © Pedro Peláez
 

cakephp-plugin cakephp-pagination-cache

Pagination Cache plugin for CakePHP 3.x

image

brenoroosevelt/cakephp-pagination-cache

Pagination Cache plugin for CakePHP 3.x

  • Friday, January 27, 2017
  • by brenoroosevelt
  • Repository
  • 0 Watchers
  • 0 Stars
  • 80 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Pagination Cache plugin for CakePHP 3.x

Software License Total Downloads Latest Stable Version Build Status Coverage Status, (*1)

Installation

You can install this plugin into your CakePHP application using composer., (*2)

The recommended way to install composer packages is:, (*3)

composer require brenoroosevelt/cakephp-pagination-cache

Load the plugin

Add following to your config/bootstrap.php, (*4)

Plugin::load('BRPaginationCache');

Usage

Controller class

public function index()
{

        // load component with setup param
        $this->loadComponent('BRPaginationCache.PaginationCache', [
                'session' => 'posts_pagination'
        ]);

        // restore pagination from session
        $this->PaginationCache->restore();

        // pagination       
        $this->set('posts', $this->paginate($this->Posts));

        // save pagination from session
        $this->PaginationCache->save();
}

Persisting pagination params (session)

All params are persisted using sessions. Make sure to load the Session component., (*5)

The Versions

27/01 2017

dev-master

9999999-dev

Pagination Cache plugin for CakePHP 3.x

  Sources   Download

MIT

The Requires

 

The Development Requires

25/01 2017

1.0.0

1.0.0.0

Pagination Cache plugin for CakePHP 3.x

  Sources   Download

MIT

The Requires

 

The Development Requires