We can set a url suffix to be appended to our urls, but this doesn’t work fine with the
pagination class and the site_url() function.
If we want to use the site_url() function for the pagination base url, like
$config['base_url'] = site_url('my_base_url');
but the pagination class generates this kind of link:
http://127.0.0.1/index.php/my_base_url.html/2
.html/2 is bad
Now my small idea: the pagination class could take care of the $config[‘url_suffix’] = “.html”; item in the main config file, and append it rather at the end.
Would it break the nice modular design that we have?
Is there a better way than writing
$config['base_url'] = base_url().$this->config->item('index_page').'/'.'my_base_url';
