diff options
Diffstat (limited to 'user_guide_src/source/libraries/pagination.rst')
-rw-r--r-- | user_guide_src/source/libraries/pagination.rst | 10 |
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 ===== |