Little problem with pagination class |
[eluser]Rushino[/eluser]
Hello, I have theses settings for the pagination. Code: // Récupération des groupes utilisateur The value of $this->groupes_par_page is 5. Why does the pagination generate theses links : first link called 1 : http://localhost/cigestion/admin/usergroups/1 second link called 2 : http://localhost/cigestion/admin/usergroups/5 Why 5 ? it should be 2. Is there anything i am doing wrong ? Thanks!
[eluser]InsiteFX[/eluser]
Because yu have not set the config item to tell it what uri_segment to use $config['uri_segment'] = 3; InsiteFX
[eluser]Rushino[/eluser]
Umm well i tried this already but still doesnt generate a correct page link it seem to take the per-pages as number displayed in link
[eluser]InsiteFX[/eluser]
Are you using limit and offset when retriving you pagination data? InsiteFX
[eluser]Rushino[/eluser]
[quote author="InsiteFX" date="1306749587"]Are you using limit and offset when retriving you pagination data? InsiteFX[/quote] Yes i do. Ive looked into the pagination class and it seem the link is rendered using cur page * per page which is a bit wierd. Personnally ive never seen something like that in a pagination mechanism. |
Welcome Guest, Not a member yet? Register Sign In |