[eluser]Unknown[/eluser]
I know this is an old post, but I just experienced this issue and finally resolved the problem by examining the pagination library.
The scenario:
Your pagination links are generated.
Your links work flawlessly when you click, and return data without issue.
The problem:
Your pagination 'active/current' link is stuck on the first link.
While data is returning properly when you click other links, it never makes those clicked links the active link, even though the data is returning properly.
The solution:
By default the pagination library is configured to read this uri segment, code taken directly from CI 2.1 system/libraries/Pagination.php.
Code:
var $uri_segment = 3;
In your config array you need to include,
Code:
$config['uri_segment'] = #
Where the '#' is equal to the uri segment of your pagination.
In reference to the original posters issue, his pagination uri_segment would be 4 according to his config['base_url'] below:
Code:
$config['base_url']= base_url().'evenimente/evenimente_categorie/'.$categorie.'/';
Because he failed to set $config['uri_segment'] = 4; the pagination library was looking at the third segment which was a string indicating which category a person was viewing. Thus breaking the updating of the pagination links to indicate which page he was on.
Hope this helps anyone else that gets stuck on this nonsense. Pounded my head against the desk for a good 30 minutes wondering why it worked with no filters using segment 3 and why it broke when I pushed my own pagination segment to 7 while adding filters between.