![]() |
Pagination doesnt show "Last" link - 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 doesnt show "Last" link (/showthread.php?tid=11291) |
Pagination doesnt show "Last" link - El Forum - 09-02-2008 [eluser]furyan[/eluser] Hi, My pagination works correct except the "last" link doesnt show up. I have 5 rows that I fetch from the database so I set up my $config['total_rows'] to the value of 5 via a function. $config['per_page'] = 2; $config['num_links'] = 2; If I change the num_links value to 1 it displays the "last" link. Can anyone explain why? Pagination doesnt show "Last" link - El Forum - 09-02-2008 [eluser]anggie[/eluser] You have the same problem with me... I have asked too but no answer. Something more terrible happen when you set per_page to 2... try that...and you will get an even page link (not the display) only... Pagination doesnt show "Last" link - El Forum - 09-03-2008 [eluser]Sumon[/eluser] This is my custom pagination. you may try it. Here is my controller code Code: $this->load->model("asknanny_model");//my model Here is the view (only pagination link and record portion) Code: Displaying <?=$DisplayStartVal?>-<?=$DisplayEndVal?> out of <?=$TotalRecord?>(Page<? if($TotalRecord>0) echo $CurListing; else echo "0";?>) Hope it help you. Pagination doesnt show "Last" link - El Forum - 09-03-2008 [eluser]furyan[/eluser] Ahh thank you, ill be sure to test it out in the near future. I guess it just doesnt show 'Last' link because I can see alrdy the last page, wich is digit 3 in my case. But I think it would still be handy to show the 'Last' link even though you can see a link to the last page. Pagination doesnt show "Last" link - El Forum - 09-04-2008 [eluser]Sumon[/eluser] Okay for that change your view by Code: Displaying <?=$DisplayStartVal?>-<?=$DisplayEndVal?> out of <?=$TotalRecord?>(Page<? if($TotalRecord>0) echo $CurListing; else echo "0";?>) |