Problem with pagination, need some help, new to CI (3 day) |
[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!
[eluser]nemanjanq[/eluser]
OK, I think I know what I did wrong. Will let you know.
[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 ()
[eluser]therealmaloy[/eluser]
nemanjanq in your model, have you specified the offset and limit for the function that return the records. you need that ![]()
[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! |
Welcome Guest, Not a member yet? Register Sign In |