Pagination not displaying results on next pages, can anybody help :-( [solved] |
[eluser]boltsabre[/eluser]
Hi guys, really hoping someone can help me with a pagination issue, I'm baffled. So, I've got all the code in, it looks like it's working: - when the view is first loaded I see the correct number of results as set in my paginationConfig variable. - I see the pagination at the bottom, with the correct number of 'pages' - When I click on the another page my url is changing to reflect the 'offset' for the databse/ model call (see below). - But when I click on another 'page' I just see no results from my db - no error messages, just nothing... Original URl when view loads: - www.mydomain.com/visas/forum/general-topics New URl when pagination link is clicked: - www.mydomain.com/visas/forum/general-topics/10 If someone could look at my code and suggest where I have gone wrong I'd be extremely grateful, a million thanks in advance!!! Controller code: Code: function general_topics($postID = null){ The view code Code: <?php if($forum_results){ ?> And finally the model Code: // this limit and offset are set in the controller in the pagination config array, needed to make pagination work Any help would be great, I've been stuck on this for hours now!!! |
Messages In This Thread |
Pagination not displaying results on next pages, can anybody help :-( [solved] - by El Forum - 05-10-2011, 02:53 PM
Pagination not displaying results on next pages, can anybody help :-( [solved] - by El Forum - 05-10-2011, 11:46 PM
Pagination not displaying results on next pages, can anybody help :-( [solved] - by El Forum - 05-11-2011, 07:36 AM
Pagination not displaying results on next pages, can anybody help :-( [solved] - by El Forum - 05-11-2011, 07:56 AM
Pagination not displaying results on next pages, can anybody help :-( [solved] - by El Forum - 05-11-2011, 08:35 AM
|