Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14114

Can't set url_suffix with $this->config->set_item()

$
0
0
In my project, I have set configurations in MY_Controller like:
$this->config->set_item('base_url', 'http://www.example.com');
$this->config->set_item('url_suffix', '.html');

When I set the url_suffix inside config.php, CodeIgniter ignores url_suffix which is the right behavior. If the path is http://www.example.com/controller/method/some_link.html, CodeIgniter only gets the some_link. not .html. That's fine.

But when I set url_suffix with $this->config->set_item('url_suffix', '.html');, CodeIgniter doesn't ignore .html and gets full some_link.html, which is not the right behaivior.

I am using CodeIgniter 3.1.1.

Viewing all articles
Browse latest Browse all 14114


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>