public function action_current($sort = 1, $page = 1, $filter = null){ $config = array( 'pagination_url' => "photos/current/$sort/ 'total_items' => 50 'per_page' => 10, 'uri_segment' => 4, ); //do some stuff }
'pagination_url' => "photos/current/$sort/$page/blah/blah"
photos/current/1/1/blah/blah/2
photos/current/1/2/blah/blah
Harro Verton wrote on Thursday 22nd of September 2011:The Pagination class doesn't do anything intelligent when constructing the URL's. If you want the page to be segment 4, you need to make sure that 'pagination_url' contains 3 segments. It just sticks it on. I store selections/filters and sort order in the users session. It keeps URLs clean, and it also has the advantage that the last selection is remembered when the user revisits the page.
It looks like you're new here. If you want to get involved, click one of these buttons!