• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pagination Question

Hi to everyone whom reads this post i was jest wondering about the pagination in codeigniter is it possible to play around with it so instead of numbers it would display something else ?

Yes, you can extend it, or implement your own version, as outlined [url="http://ellislab.com/codeigniter/user-guide/general/creating_libraries.html"]here[/url]

Is it OK to edit the main pagination library or is it a no no ?

If you want to alter any of the main libraries you do this by extending them.

Create a file in your application/libraries folder called MY_Pagination.php and create a class MY_Pagination that extends CI_Pagination.

Examine the Pagination.php file in system/libraries. Your MY_Pagination class will inherit all the methods and properties found here. Any method/properties you define in your MY_Pagination class will override those in the CI_Pagination class.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.