Pagination, offset issue

#8
[eluser]1cookie1[/eluser]
[quote author="mcr_rm" date="1263487652"][quote author="1cookie1" date="1263481752"]


No Need for the sarcasm, what I was trying to say (poorly) was exactly what you are saying.
[/quote]
No sarcasm intended!

Quote: Firstly CI pagination class passes the offset in the uri not a page number i.e. multples of your per page rather than the 1/2/3/4.

So to be clear the 1/2/3/4 was never working properly with the class links?

Correct! The class links did not work correctly.

Quote:You seem to have it now but didn't before and I was confused at how you got anything working properly with that code.

I admit, the code was poorly constructed, but to be fair.. I'm new to CI and so am going to look foolish on first attempt? Knowlege is something you leave with, not come in with!

Quote:Essentially forget the multiple rubbish and simply pass in the uri segment with the offset to your db query via a model or whatever is doing the db call.

Correct! Smile


Messages In This Thread
Pagination, offset issue - by El Forum - 01-12-2010, 04:48 AM
Pagination, offset issue - by El Forum - 01-13-2010, 08:16 AM
Pagination, offset issue - by El Forum - 01-13-2010, 11:15 AM
Pagination, offset issue - by El Forum - 01-13-2010, 04:09 PM
Pagination, offset issue - by El Forum - 01-13-2010, 07:15 PM
Pagination, offset issue - by El Forum - 01-14-2010, 03:09 AM
Pagination, offset issue - by El Forum - 01-14-2010, 04:47 AM
Pagination, offset issue - by El Forum - 01-14-2010, 05:24 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.