CodeIgniter Forums
Pagination class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Pagination class (/showthread.php?tid=19409)



Pagination class - El Forum - 06-06-2009

[eluser]innocast[/eluser]
In libraries/Pagination.php

At line 213:
Code:
$output .= $this->num_tag_open.'<a >base_url.$n.'">'.$loop.'</a>'.$this->num_tag_close;

Shouldn't this be:
Code:
$output .= $this->num_tag_open . anchor($this->base_url.$n,$loop) . $this->num_tag_close;

This is because the links generated doesn't follow the rest of the sites link. Me my self got .html at the end of every link, and that's not displayed.

Modified and tested successfully.


Pagination class - El Forum - 06-06-2009

[eluser]innocast[/eluser]
Also, is it very good to use /10 for the first page (if per page is set to 10)? Modified the code to use 1, 2, 3 etc... Contact me for more information regarding this matter.