Welcome Guest, Not a member yet? Register   Sign In
Pagination + Calendar + Database = ?
#1

[eluser]Kyle Wiebers[/eluser]
Hey all,
I'm trying to set up a calendar of events page for a CI website I'm fooling around with. To do this, I'm using the Calendar class to generate a working calendar and a model which pulls all the events from a database. That part works fine, but now I'm trying to put pagination into it and I can't figure out a way to hook it all up. Even when I try to initialize the pagination library, I get no response from the site, it's just a blank page with no error.

If you need to see code, let me know and I'll paste it. I have a model with a function that sends the events as an array by the month, and another function that sends the total amount of events (for pagination size). Those work fine by themselves, the pagination is what gives me problems.

Is it possible to set up pagination like this? Since the calendar url changes with each month, I'm not sure what to use as the base url.

Thank you for any help
#2

[eluser]Flipside Tech[/eluser]
Pagination is broken.

See my bug report post:
http://ellislab.com/forums/viewthread/99071/

Bug Tracker:
http://codeigniter.com/bug_tracker/bug/6150/

Sounds like you might be suffering the same issues I am.

Ryan
#3

[eluser]Kyle Wiebers[/eluser]
I'll just write a Jquery Pagination script that rewrites the URL hash and switches the <div> container which will contain a certain amount.

Thanks for the tip.




Theme © iAndrew 2016 - Forum software by © MyBB