pagination - 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 (/showthread.php?tid=42952) |
pagination - El Forum - 06-24-2011 [eluser]mehwish[/eluser] hello everyone ... i am using the pagination class and almost written the code for it but facing some problem in retrieving the next records from databse when i click next pagination link. this is my controller "customer_controller" Code: <?php here is my model "customer_model" Code: <?php and here is the view "viewcustomer_view" Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> actually i have copy the code from godbit project to understand but when i click digit 2 to show the some next records it shows something like a website task2.com/index/5 here task2 is my project name. please solve this out pagination - El Forum - 06-24-2011 [eluser]adityamenon[/eluser] You forgot to provide $config['uri_segment'] in your controller. CodeIgniter doesn't know where to find the number which indicates which page it's on otherwise. |