![]() |
Pagination next prev doesn't work correctly. - 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: Pagination next prev doesn't work correctly. (/showthread.php?tid=47723) |
Pagination next prev doesn't work correctly. - El Forum - 12-20-2011 [eluser]Unknown[/eluser] Hi everybody! I'm new on this forum. ![]() I have a problem with my pagination "next, prev". At first my pagination code: Code: public function news($id) On my view I just added "create_links". Pagination works, but not correctly. I have 10 news on my database and for example if I go to page with id 7 I see links "prev, next", so it's ok, but if I go to news with id 1 (..index.php/informatyka/news/1), I'm still see a link 'prev'. If I click it, I get the error "Missing argument 1 for Informatyka::news()" Why I see "prev" link on my first news and how I can get rid of it? It should no be, right? Next, if I go to last "next" link, I see news width id 9 (..index.php/informatyka/news/9), but I have 10, button "next" disappeared. If I write manually in the browser id 10, it's works. Can anybody help me, please? |