Installation
To display Skinny PHP Pagination, you’ll have to go through 3 steps:
-
1. include it in your code
// On the PHP side require_once '{path_to}/lib/spagination.php'; // CSS for front-end <link type="text/css" rel="stylesheet" href="{path_to}/css/sp.css" />
-
2. initiate a Spagination object with count and limit
$pagi = Spagination::create($count, $limit);
-
3. echo the object where you want it displayed
echo $pagi
That’s all folks