![]() |
Help with pagination (use page numbers) :( - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Help with pagination (use page numbers) :( (/showthread.php?tid=47493) |
Help with pagination (use page numbers) :( - El Forum - 12-11-2011 [eluser]victorche[/eluser] I like the new feature to use page numbers instead of the offset, but I thought it is easy as adding just one line to the config array. Like: Code: $config['use_page_numbers'] = TRUE; Code: function news($offset = NULL) So the database query is also different. From my model: Code: ->limit($limit, $offset) /news/10 (the old behavior) it is Ok... With a link like: /news/2 It is now working ![]() What else should I change for that? Please, someone! |