Welcome Guest, Not a member yet? Register   Sign In
pagination adding params
#3

(This post was last modified: 08-04-2024, 11:33 PM by cadgiru.)

(08-03-2024, 10:45 AM)ozornick Wrote: What exactly are the parameters? QUERY_STRING /users/1000?option=full ?

Tried building links with added parameters:

``` php
// Existing code setup
$data['body']['pagerLinks'] = $pager->makeLinks(
    $data['body']['page'],    // current page
    $data['body']['perPage'],  // items per page
    $data['body']['ant'],      // total items available
    'default_full',            // pagination template
    0,                        // segment number (assuming default or not needed)
    'page',                    // the URI segment that contains the page number
    true,                      // whether to keep query string
    ['a' => $data['body']['a'], 'b' => $data['body']['b']]    // array of additional query parameters to append
);
```

This gives no error, but additional params (a, b) are not added to links?
Do I need to modify template?
What am I doing wrong?
Reply


Messages In This Thread
pagination adding params - by cadgiru - 08-03-2024, 06:20 AM
RE: pagination adding params - by ozornick - 08-03-2024, 10:45 AM
RE: pagination adding params - by cadgiru - 08-04-2024, 11:28 PM
RE: pagination adding params - by kenjis - 08-05-2024, 12:39 AM
RE: pagination adding params - by cadgiru - 08-05-2024, 02:26 AM
RE: pagination adding params - by kenjis - 08-05-2024, 02:57 AM
RE: pagination adding params - by cadgiru - 08-06-2024, 05:56 AM
RE: pagination adding params - by cadgiru - 08-06-2024, 11:27 PM
RE: pagination adding params - by kenjis - 08-06-2024, 06:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB