PHP Classes

File: example/index.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq  >  PHP Pagination class  >  example/index.php  >  Download  
File: example/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Pagination class
Generate HTML to display links for pagination
Author: By
Last change:
Date: 4 years ago
Size: 549 bytes
 

Contents

Class file image Download
<!-- Compiled and minified CSS -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">

    <!-- Compiled and minified JavaScript -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
           

<?php
   
use Lablnet\Pagination;
    require
'../vendor/autoload.php';
   
$pag1 = new Pagination(100,10,5,'/');
    echo
$pag1->pagination();
   
$pag2 = new Pagination(1000,10,25,'https://example.com/blogs/');
    echo
$pag2->pagination();