user_guide_src/source/installation/upgrade_pagination.rst
Upgrade Pagination ##################
.. contents:: :local: :depth: 2
Pagination Class Documentation CodeIgniter 3.x <http://codeigniter.com/userguide3/libraries/pagination.html>_Pagination Documentation CodeIgniter 4.x </libraries/pagination>CodeIgnite\\Model </models/model>, you can use the built-in method in the Model class.Within the views change to following:
<?php echo $this->pagination->create_links(); ?> to <?= $pager->links() ?>Within the controller you have to make the following changes:
paginate() method on every Model. Have a look at the code example below to see how you setup the pagination on a specific model... literalinclude:: upgrade_pagination/ci3sample/001.php
.. literalinclude:: upgrade_pagination/001.php