I'm new to CodeIgniter. I have populated some categories to a view, and the category ID is passing through the URL to the controller then to the model.
I also need to integrate the pagination. For that I have done the base_url like so:
$config['base_url'] = base_url() . "kc_directory/categoryloader/";
But when I click on the pagination link, it's returning the following link:
localhost/kc_directory/categoryloader/2
When I modify the above link to localhost/kc_directory/categoryloader/2/?value1=1
it works, where value1
is the variable name and 1
is the category ID.
How do I change the base_url
to achieve this ?