I'm using codeigniter 2.1 and loaded pagination library in a controller. The pagination is working just fine, the only problem is,
I had to add (for pagination library in the controller that loads it)
$config['base_url'] = site_url('members/sites/'.$current_segment);
Which is fine, but it seems to override the default base_url(); to this URL in all pages under that controller. I don't want that.
I have included a sidebar navigation, and all the links there are getting changed from something like
http://www.mysite.com/about to http://www.mysite.com/members/sites/about
Which is annoying. Is there something I'm doing wrong?
I don't want add nother default URL like
$config['base_url']['one'] = "www.mysite.com"
$config['base_url']['two'] = "www.myothersite.com"
I think there should be a better way to do this. Any help is very much appreciated :) Thanks in advance
$configarray is for the pagination library, not theapplication/config/config.phpright? - complex857If you need to load multiple config files normally they will be merged into one master config array. Name collisions can occur, however, if you have identically named array indexes in different config files. To avoid collisions you can set the second parameter to TRUE and each config file will be stored in an array index corresponding to the name of the config file.- None