Settings

current_page

The current_page setting tells Pagination where to look to find the current page number.
There are two options for the source of the page number: query_string and route.
The key index in the configuration array tells Pagination what name to look for when it's searching in the query string or route.

This configuration informs Pagination to look in the query string for a value named page:

'current_page' => array('source' => 'query_string', 'key' => 'page'),

If you have a route setup with the page number in the actual URL like this: