summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/pagination.rst
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-06-26 12:59:53 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-06-26 12:59:53 +0200
commitbae037841f40c8068bffba5f089a363f211f8b44 (patch)
tree71fb88c8844bf675c2bc8a7ab5dbd577db57cf78 /user_guide_src/source/libraries/pagination.rst
parent290f0046df6a1cf0e6f48f5b7f0043278475bea8 (diff)
parent4b84d62490e3c17c18f0d1681d713da57a2c82ba (diff)
Merge pull request #1535 from mpmont/develop
Updated pagination library documentation with prefix and suffix
Diffstat (limited to 'user_guide_src/source/libraries/pagination.rst')
-rw-r--r--user_guide_src/source/libraries/pagination.rst22
1 files changed, 17 insertions, 5 deletions
diff --git a/user_guide_src/source/libraries/pagination.rst b/user_guide_src/source/libraries/pagination.rst
index 15b3675df..6e1020be3 100644
--- a/user_guide_src/source/libraries/pagination.rst
+++ b/user_guide_src/source/libraries/pagination.rst
@@ -21,9 +21,9 @@ Here is a simple example showing how to create pagination in one of your
$config['base_url'] = 'http://example.com/index.php/test/page/';
$config['total_rows'] = 200;
- $config['per_page'] = 20;
+ $config['per_page'] = 20;
- $this->pagination->initialize($config);
+ $this->pagination->initialize($config);
echo $this->pagination->create_links();
@@ -115,9 +115,9 @@ configured using $config['query_string_segment'] = 'your_string'
$config['reuse_query_string'] = FALSE;
====================================
-By default your Query String arguments (nothing to do with other
-query string options) will be ignored. Setting this config to
-TRUE will add existing query string arguments back into the
+By default your Query String arguments (nothing to do with other
+query string options) will be ignored. Setting this config to
+TRUE will add existing query string arguments back into the
URL after the URI segment and before the suffix
::
@@ -127,6 +127,18 @@ URL after the URI segment and before the suffix
This helps you mix together normal :doc:`URI Segments <../general/urls>`
as well as query string arguments, which until 3.0 was not possible.
+$config['prefix'] = '';
+==================================
+
+A custom prefix added to the path. The prefix value will be right before
+the offset segment.
+
+$config['suffix'] = '';
+==================================
+
+A custom suffix added to the path. The sufix value will be right after
+the offset segment.
+
***********************
Adding Enclosing Markup
***********************