Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
iam working on pagenation uri_segment
  • i am trying to create segment which has a parmeter like 
    page?batchcodename=batchcode&page=2

    i have created a segment as given below
    'pagination_url' => '',
                                'uri_segment' => '?batchcode='.Input::get('batchcodename').'&page',
                                'total_items' => $ctr[0]['counts'],
                                'per_page' => 20,

    but when pagenation like is created i am recive the link as given below
    /page?%3Dbatchcode%3Dideabase58%26page=2

    due to this on the next page i am not reciving the batch code 
    can u tell em how to define the url segment with on paramete in it
  • HarroHarro
    Accepted Answer
    It doesn't work like that.

    'uri_segment' is either a number (if you use uri segments) or a string (if you use GET variables).

    so it should be

    'uri_segment' => 'page',

    the rest should be part of the pagination_url, which is used to construct the final URL.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion