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.
$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.