[eluser]yogal[/eluser]
Hmm,
I don't have a clue.
From what i can see, this should work.
I would suggest, for the research, simplify your queries - comment the join() statements.
Make it absolute minimum, 1 table and try to set up pagination then.
Make sure this
Code:
$this->sponsorpag->get_count($filtro);
returns a valid integer.
You can also set $config['total_rows'] to an integer, instead of db result, just to be sure its a number, then you should get numbers as well as 'First' and 'Last' links.
Also, try to move all your queries to the model.
EDIT:
This just came to my mind:
tell me how many numbers do you see in your pagination links ?
?
?
Because unless you have
4 or more pages of pagination, links like First and Last
WILL NOT APPEAR!
I made a little research here.
Code:
$config['per_page'] = 10;
$config['total_rows'] = 30
no Last or First link,
but when i set total_rows to 40 links are showing
So the problem might be as follows:
you have set $config['per_page'] = 5 and your $config['total_rows'] might be less than $config['per_page'] * 4 !
I hope this will help you!