![]() |
Problem with pagination, need some help, new to CI (3 day) - 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: Problem with pagination, need some help, new to CI (3 day) (/showthread.php?tid=14674) |
Problem with pagination, need some help, new to CI (3 day) - El Forum - 01-11-2009 [eluser]nemanjanq[/eluser] This is my code Code: function city() This function is "city", right now I have URL http://localhost/adresar/index.php/adresar/city/ which list out all companies (because there is no city in URL), but it should list no companies, right ? and when I click on http://localhost/adresar/index.php/adresar/city/Loznica (loznica is name of city) I get all companies from loznica but pagination is not working, I get: Code: 1 2 3 > Last › on bottom, and it generated corect but its not working, it list all my companies... what I am doing wrong ? thanks! Problem with pagination, need some help, new to CI (3 day) - El Forum - 01-11-2009 [eluser]nemanjanq[/eluser] OK, I think I know what I did wrong. Will let you know. Problem with pagination, need some help, new to CI (3 day) - El Forum - 01-11-2009 [eluser]nemanjanq[/eluser] Ok, now everything is working, just my pagination links are not updated, nothing happend. its always like this Code: 1 2 3 > Poslednja here is the updated code Code: function grad () Problem with pagination, need some help, new to CI (3 day) - El Forum - 01-11-2009 [eluser]therealmaloy[/eluser] nemanjanq in your model, have you specified the offset and limit for the function that return the records. you need that ![]() Problem with pagination, need some help, new to CI (3 day) - El Forum - 01-11-2009 [eluser]nemanjanq[/eluser] Hi, check my updated code, above your post, I fixed that. Now I have problem with Code: <?php echo $this->pagination->create_links(); ?> Thanks! |