summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/pagination.rst
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2011-10-05 22:52:41 +0200
committerDerek Jones <derek.jones@ellislab.com>2011-10-05 22:52:41 +0200
commit36be96982c8b8dcf19faf9de08361301499e4134 (patch)
tree20cba761d7e6987d2bbb2807c0827c21cfa389ec /user_guide_src/source/libraries/pagination.rst
parenteb946d0ddec00fc7b341168997c401be66da416f (diff)
fixed code block spacing in Loader, Output, and Pagination lib docs
Diffstat (limited to 'user_guide_src/source/libraries/pagination.rst')
-rw-r--r--user_guide_src/source/libraries/pagination.rst10
1 files changed, 9 insertions, 1 deletions
diff --git a/user_guide_src/source/libraries/pagination.rst b/user_guide_src/source/libraries/pagination.rst
index 4d8b3b5e0..f1653c913 100644
--- a/user_guide_src/source/libraries/pagination.rst
+++ b/user_guide_src/source/libraries/pagination.rst
@@ -17,7 +17,15 @@ Example
Here is a simple example showing how to create pagination in one of your
:doc:`controller <../general/controllers>` functions::
- $this->load->library('pagination'); $config['base_url'] = 'http://example.com/index.php/test/page/'; $config['total_rows'] = 200; $config['per_page'] = 20; $this->pagination->initialize($config); echo $this->pagination->create_links();
+ $this->load->library('pagination');
+
+ $config['base_url'] = 'http://example.com/index.php/test/page/';
+ $config['total_rows'] = 200;
+ $config['per_page'] = 20;
+
+ $this->pagination->initialize($config);
+
+ echo $this->pagination->create_links();
Notes
=====