
Friends, codeigniter has already pagination library but i want to create more flexible or stylish pagnaiton with my technique. So please, follow my instruction and create one of stylish pagination for your site.
Guys, first download my pagination file >> CI_Smart_Pagination.zip
My pagination file consist on two folders. ‘application‘ and ‘mysql‘
Application contain ‘config, controllers, helpers, models, views‘ folders.
let see, if you want to test my code, please create test table and import mysql/ city.sql.gz file in to your database.
What about application folder??? let see
application/autoload.php // CI BASIC CONFIGURATION OF LIBRARIES
application/config.php // CI BASIC CONFIGURATION
application/database.php // BASIC DATABASE CONFIGURATION
Controller:-
controllers/city.php // DEMO CONTROLLER WITH DEMO PAGINATION CODE

Note: Guys, i don’t know about your setting please configure segment with your setting.
MODEL:-
models/city_model.php // DEMO MODEL FOR GETTING CITY RECORDS FROM DATABASE
VIEWS:-
views/city_view.php // BASIC PAGINATION CSS AND REPRESENT CONTROLLER DATA
HELPERS:-
helpers/pagination_helper.php //PAGINATION HELPER
NOTE: you will check this helper logic in ‘controllers/city.php‘ and i hope you understand how this helper work for pagination.
Guys, i’m sorry, to make more helpful documentation for this. Just try this pagination code on your system.
not big deal you will easily understand this pagination.







