![]() |
How to change the amount of rows in a listing - 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: How to change the amount of rows in a listing (/showthread.php?tid=33383) |
How to change the amount of rows in a listing - El Forum - 08-24-2010 [eluser]ozstar[/eluser] Hi, I want to change a listing of categories which at the moment go to 10 rows, then one has to go to the next page etc for another 10 and so on for several pages. I wish this list to be 50. I have looked in Pagination but there does not seem to be any number which suggests 10 anything. Any ideas where I should look please? Thanks John How to change the amount of rows in a listing - El Forum - 08-24-2010 [eluser]Vega[/eluser] If I understand you correct, you want to display 50 per page, you should set per_page in your pagination config array: Code: $config['per_page'] = 50; See: http://ellislab.com/codeigniter/user-guide/libraries/pagination.html How to change the amount of rows in a listing - El Forum - 08-24-2010 [eluser]juanvillegas[/eluser] Yes that's correct. I think 10 may be the default parameter. How to change the amount of rows in a listing - El Forum - 08-24-2010 [eluser]ozstar[/eluser] Hi and thanks.. In the Pagination.php there is no rference to this line.. Code: $config['per_page'] There is this.. which as you can see I changed to 50 and that works on the listing of products, but not 'categories' on another page. Code: var $base_url = ''; // The page we are linking to I am did a search of all files for.. $config - but it came up zero.. ? Where else could I look? Thanks again. John |