php - CodeIgniter: Is possible to have current page link by pagination library? -


i have created pagination item codeigniter pagination library following code:

echo $this->pagination->create_links() 

everything working well.

now want load data ajax , have done ajax part. problem make clicked item current item , arrange link current item no longer current.

suppose have pagination following:

[1] 2 [3] [4] [5] [6] [>] [last >] 

now 2 current item , 4 clicked item.

i have checked codeigniter pagination library, doesn't have option enable or disable current page link. possible have current page link without modifying library?

thanks in advance.

i take back. pagination library need changed.

https://github.com/ellislab/codeigniter/blob/develop/system/libraries/pagination.php

line 560

$output .= $this->cur_tag_open.$loop.$this->cur_tag_close 

will need replaced

$append = $this->prefix.$i.$this->suffix; $output .= $this->num_tag_open.'<a href="'.$this->base_url.$append.'"'.$attributes.$this->_attr_rel('start').'>'.$loop.'</a>'.$this->num_tag_close; 

that should it.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -