little Pagination/Uri offset problem |
[eluser]AzizLight[/eluser]
Hi everybody, I'm pretty new to CI, I mainly followed videos from BinaryCake and Nettus/Tuts+. I just finished the lastest nettuts plus tut on pagination in CI, everything works perfectly except that little uri problem. Basically what happens is that: -when I'm on page 1, the url is http://localhost:8888/mamp/CodeIgniter/p...ogs/index/ -on page 2 http://localhost:8888/mamp/CodeIgniter/p...gs/index/1 -page 3 http://localhost:8888/mamp/CodeIgniter/p...gs/index/2, etc where it should be (I think) http://localhost:8888/mamp/CodeIgniter/p...gs/index/3 on page 3. Here is the code snippet in question: Code: function index() I tried to change $config['per_page'] to 2 and I got a similar problem: Code: $config['per_page'] = 2; Now there is clearly something wrong with my code... Can somebody explain me what's the problem please? |
Messages In This Thread |
little Pagination/Uri offset problem - by El Forum - 08-20-2009, 07:04 AM
little Pagination/Uri offset problem - by El Forum - 08-20-2009, 10:10 AM
little Pagination/Uri offset problem - by El Forum - 08-20-2009, 12:37 PM
little Pagination/Uri offset problem - by El Forum - 08-21-2009, 02:43 AM
|