Skip to content

Instantly share code, notes, and snippets.

@cesarkohl
Created March 16, 2015 16:21
Show Gist options
  • Save cesarkohl/513b28263c34dfeb29b0 to your computer and use it in GitHub Desktop.
Save cesarkohl/513b28263c34dfeb29b0 to your computer and use it in GitHub Desktop.
CodeIgniter Pagination URL with GET Parameters
// http://subhra.me/codeigniter-pagination-url-get-parameters/
if (count($_GET) > 0) $config['suffix'] = '?' . http_build_query($_GET, '', "&");
$config['first_url'] = $config['base_url'].'?'.http_build_query($_GET);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment