pagination Problem please help to newbe - 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 Problem please help to newbe (/showthread.php?tid=53955) |
pagination Problem please help to newbe - El Forum - 08-15-2012 [eluser]Emilhse[/eluser] I got following problem i try use pagination class when i use it for all records in table it works ok, but when there is where in query it just getting craizy please help Code: function Posters_ads($id){ before it i tried this way both of them does not work pagination shows last page and when you try to navigate it does not show current page Code: function Posters_ads($id){ please help i got really stuck pagination Problem please help to newbe - El Forum - 08-16-2012 [eluser]Sanjay Sarvaiya[/eluser] Hey, First of all you have to load pagination class. You forget to initialize uri_segment Code: $this->load->library('pagination'); pagination Problem please help to newbe - El Forum - 08-16-2012 [eluser]Emilhse[/eluser] thank you very much i will try, the thing is pagination itself works but it does not show the current page pagination class is on autoload for me pagination Problem please help to newbe - El Forum - 08-16-2012 [eluser]Emilhse[/eluser] no luck still does not work any ideas more? pagination Problem please help to newbe - El Forum - 08-16-2012 [eluser]Sanjay Sarvaiya[/eluser] In your case uri_segment is 4, Have you tried this? Code: $config['uri_segment'] = 4; pagination Problem please help to newbe - El Forum - 08-16-2012 [eluser]Emilhse[/eluser] thank you very much it worked just fine thanks again |