How To create Pagination in codeigniter
Here I am Create Pagination Example in Codeigniter.
The Model
The record_count( ) method returns the number of records and is needed because one of the options in the $config array for the pagination library is $config[ "total_rows"]
The get_news( ) method retrieves a list of all the records from the News table.
The arguments will be set in the controller.