(Hopefully) simple pagination problem |
[eluser]garethfoote[/eluser]
Hi, Relative newbie to CI. This is hopefully something simple I'm missing. The pagination class page in the User Guide doesn't seem to go into much detail and I'm therefore a bit stuck as to why this problem is occuring: Problem: Pagination is working fine except for when I click page 2 and the next (offset) set of DB results is displayed the pagination still thinks it's on page 1 (The 1 has not become a link). Therefore I cannot click on the 1 returning me to the first set of results. Example: http://ultravioletdesign.co.uk/mdi/adas_.../articles/ Here is the function in my controller: Code: function articles() Hope someone can shed some light on this. Please excuse any bad practices or un-elegant code. I'm learning best practices as I go along. Many thanks, Gareth
[eluser]therealmaloy[/eluser]
@garethfoote your pagination config may have lack the uri_segment Code: $config['uri_segment'] = 4;
|
Welcome Guest, Not a member yet? Register Sign In |