Welcome Guest, Not a member yet? Register   Sign In
two paginations on one controller
#5

[eluser]falloutphil[/eluser]
[quote author="xwero" date="1204519671"]Try this
Code:
// in common
$config['base_url'] = site_url('profile/messages');
// inbox
$config['uri_segment'] = 3;
// outbox
$config['uri_segment'] = 4;
It should give you a number for the inbox after the messages segment and a number for the outbox after the inbox segment. I never did it myself so i don't know if it works.[/quote]


As far as I can see this is not possible. CI's paginator expects the last URI to contain the pagination offset - if you give it a uri_segment of 4 but only have a base_url with 2 URIs in, CI just shortens this to 3 for you. It looks very tricky, if not impossible to me to carry two pagination URIs with CI's current implementation. Hence the use of an earlier URI to specify which object we are paginating in the other examples, and the other object being forced to it's first page.

If anyone can show me a full blow example of storing state information for two paginations, I'll be impressed (and greatful!),

Phil.


Messages In This Thread
two paginations on one controller - by El Forum - 03-01-2008, 02:16 PM
two paginations on one controller - by El Forum - 03-02-2008, 03:13 PM
two paginations on one controller - by El Forum - 03-02-2008, 04:47 PM
two paginations on one controller - by El Forum - 03-02-2008, 05:32 PM
two paginations on one controller - by El Forum - 03-02-2008, 06:13 PM
two paginations on one controller - by El Forum - 03-09-2008, 01:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB