Welcome Guest, Not a member yet? Register   Sign In
Pagination, offset issue
#4

[eluser]mcr_rm[/eluser]
I am confused a little by this.

Firstly the pagination class always passes increments of your per page value in the uri right? how have you got it to pass 1/2/3/4 when in per pages of five it should be passing nothing followed by /5/10/15.

Secondly you are delaring $page=null in the index function however I don't see anywhere where $page is being set to the uri segment. And I don't know why you need it anyway as the offset is actually the bit passed in the uri usually i.e. 5/10/15 and so you just pass $this->uri->segment(3) to the database call for the offset surely?

I think the only bit that is really confusing for me is how you got manually typing it in the browser to work? as at no point can I see the setting of $page from the uri to multiply the per page for the offset (which is needless anyways).

Are yousurw when you type the recors it is infact pulling the right records in sequence?


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



Theme © iAndrew 2016 - Forum software by © MyBB