Pagination when $config['per_page'] = 1 |
[eluser]osci[/eluser]
[quote author="Cesar Kohl" date="1309231606"]@osci I tested here my modifications and it works.. Maybe I'm doing the wrong tests so I can't see the error you're trying to show me. If my approach is wrong I suggest you to show me a better one, please.[/quote] I'm not pointing code error to you, I'm pointing logical error. Your code might work for you, but it is not logical. You are mixing as I stated in a function the logic for page number and offset. You are going to work with offset when you want 4 records per page? Won't you then want page numbers too instead? Also are you handling the offset? because for 1 record per page you get for first offset limit(1,0), while I think you are getting results for limit (1,1) for first record, unless you are handling that in your controller (computed from page number - remember page number is not offset.) That being said, I already have provided you with example of what you should do - no code, just logic. |
Messages In This Thread |
Pagination when $config['per_page'] = 1 - by El Forum - 06-25-2011, 02:50 PM
Pagination when $config['per_page'] = 1 - by El Forum - 06-26-2011, 12:53 PM
Pagination when $config['per_page'] = 1 - by El Forum - 06-26-2011, 01:36 PM
Pagination when $config['per_page'] = 1 - by El Forum - 06-27-2011, 10:21 AM
Pagination when $config['per_page'] = 1 - by El Forum - 06-27-2011, 02:08 PM
Pagination when $config['per_page'] = 1 - by El Forum - 06-27-2011, 04:26 PM
Pagination when $config['per_page'] = 1 - by El Forum - 06-27-2011, 10:11 PM
Pagination when $config['per_page'] = 1 - by El Forum - 06-28-2011, 05:14 AM
|