Welcome Guest, Not a member yet? Register   Sign In
Same Pagination Problem
#7

[eluser]srpurdy[/eluser]
[quote author="Önder ÖZCAN" date="1345642597"]I fixed problem :

The solution is , uri_segment is not enough for creating pagination ...

$offset = $this->uri->segment(4,0); is needed for Sql statement which is really gets 4th segment of address string.

When i try to execute everything works fine . But also uri_segment is needed by pagination , it does not do anything but somehow it needed by configuration .

It's just prooved that Pagination Class has a bug ![/quote]

It's not a bug. My mistake. I forgot you can't use that config variable. You can just pass $this->uri->segment(4) instead. Smile I used pagination all the time. Smile

The reason it's needed is the default is 3 I think. So if your using anything other than 3. it's needed. cause you need to tell it to use segment 4 or 5 or whatever. I suspose it could probably be coded better to be smart enough to figure out the segment based on the url config option though.


Messages In This Thread
Same Pagination Problem - by El Forum - 08-21-2012, 12:47 PM
Same Pagination Problem - by El Forum - 08-21-2012, 03:00 PM
Same Pagination Problem - by El Forum - 08-21-2012, 03:15 PM
Same Pagination Problem - by El Forum - 08-21-2012, 05:48 PM
Same Pagination Problem - by El Forum - 08-22-2012, 03:51 AM
Same Pagination Problem - by El Forum - 08-22-2012, 06:36 AM
Same Pagination Problem - by El Forum - 08-22-2012, 09:28 AM
Same Pagination Problem - by El Forum - 08-22-2012, 10:58 AM
Same Pagination Problem - by El Forum - 08-22-2012, 11:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB