diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-08-22 14:29:06 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-09-25 17:34:28 +0200 |
commit | 0abb4a5ad3a2d5de9215473f07693b5610ee8945 (patch) | |
tree | 3a9b50fd30e05a77a2997a97efe8315cc6234023 /phpBB/includes/functions_database_helper.php | |
parent | 8da31332381b572f8d03c63d4c32a4f32ed8775f (diff) | |
download | forums-0abb4a5ad3a2d5de9215473f07693b5610ee8945.tar forums-0abb4a5ad3a2d5de9215473f07693b5610ee8945.tar.gz forums-0abb4a5ad3a2d5de9215473f07693b5610ee8945.tar.bz2 forums-0abb4a5ad3a2d5de9215473f07693b5610ee8945.tar.xz forums-0abb4a5ad3a2d5de9215473f07693b5610ee8945.zip |
[ticket/11805] Allow specifying the page in the route for pagination
Instead of "app.php?controller=news&start=10" authors might prefer having
the pagination in the route. So the sample link from above would be the
same as "app.php?controller=news/page/2". With this patch that is easily
possible. What you do is, you specify the $base_url and $start_name as follows:
$base_url = $controller_helper->url('news/page/%d');
$start_name = '/page/%d'; // Part of the url that will be removed
// for page 1
Now this will generate:
"news" for start = 0
"news/page/1" will work aswell, but will not be created
"news/page/2" for start = 10
PHPBB3-11805
Diffstat (limited to 'phpBB/includes/functions_database_helper.php')
0 files changed, 0 insertions, 0 deletions