Pagination Helper v1.0
I've written a PHP script to populate the links in a Bootstrap pagination bar. There is a working example above.
How To Use the Script
Download the zip file containing the script and a working example.
Include Bootstrap's CSS code in each file to be linked.
Include the PHP script in each file to be linked.
- Files to be linked from the navigation bar must be in a single folder and have consecutively numbered basenames beginning with 01.
- The basename pattern is *[0-9][0-9] so the numbers are in the last two positions of the basenames.
- After this is set up and working, the script will update the navbar anytime you add a new file.
- The default script requires files with a .php extension. I've included alternate scripts for .htm and .html extensions. Using those will require changing your .htaccess file to run html files as .php.