Welcome Guest, Not a member yet? Register   Sign In
Pagination, filtering results and Get variables
#2

[eluser]gh0st[/eluser]
How do I add variables, such as a country to the pagination config so that when it generates the pagination links it adds the proper structure automatically?

For example;

Code:
// Pagination config
$config['base_url'] = base_url() .'cms/gallery/index/';

The structure of my URI is thus;

Code:
/cms/gallery/index/[page]/[country]/

My aim is to make the $this->pagination->create_links(); auto create the right links without me having to do that much.

Obviousily I can't put the page in after the /index/ in my config because the page will never move, but I really need to add other variables into the create_links() output.

How do I do this?

Thanks


Messages In This Thread
Pagination, filtering results and Get variables - by El Forum - 09-04-2009, 08:19 AM
Pagination, filtering results and Get variables - by El Forum - 09-04-2009, 09:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB