[eluser]xwero[/eluser]
GSV Sleeper Service if you quote you better add a link to the source, in this case the CI documentation.
You can not show the next, previous links by leaving the template settings next_link, prev_link empty but this still generates an a tag. I find it strange the class doesn't checks the content of these settings. create_links snippet:
Code:
// Render the "previous" link
if ($this->cur_page != 1)
{
$i = $uri_page_number - $this->per_page;
if ($i == 0) $i = '';
$output .= $this->prev_tag_open.'<a >base_url.$i.'">'.$this->prev_link.'</a>'.$this->prev_tag_close;
}
With a small change the a tag is not added
Code:
// Render the "previous" link
if ($this->cur_page != 1 && ! empty($this->prev_link) )
{
$i = $uri_page_number - $this->per_page;
if ($i == 0) $i = '';
$output .= $this->prev_tag_open.'<a >base_url.$i.'">'.$this->prev_link.'</a>'.$this->prev_tag_close;
}
The same goes for next_link, first_link and next_link.
But there are bigger issues with the pagination library for instance displaying the offset in the url instead of the page number.