Skip to content

pointdeb/zpaginate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Builds

Build Status

composer require pointdeb/zpaginate

<?php
use Zpaginate\Zpaginate;

public function testPaginate()
{
    // initialize data

    $data = [];
    for ($i = 0; $i < 10; $i ++ ) {
        $data[] = ['name' => "Name $i"];
    }

    // set params

    $current = 3;
    $per_page = 5;
    $per_link = 3;
    $allow_over_max_page = false;

    // execute paginate

    $result = Zpaginate::paginate($data, $current, $per_page, $per_link, $allow_over_max_page);

    // hope you'l see the output
    
    print_r($result);
}

?>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages