CodeIgniter Forums
Controlling URL Suffix - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Controlling URL Suffix (/thread-25764.html)



Controlling URL Suffix - El Forum - 12-23-2009

[eluser]mikepuerto[/eluser]
Hello!

Is there any way to control the URL suffix in a given controller, or at least with Pagination? When using
Code:
$this->pagination->create_links()
I do not want my ".html" suffix added on... Any ideas would be great!

Thanks!


Controlling URL Suffix - El Forum - 12-26-2009

[eluser]pistolPete[/eluser]
You could try unsetting the URL suffix temporarily:

Code:
$this->config->set_item('url_suffix', '');



Controlling URL Suffix - El Forum - 12-28-2009

[eluser]mikepuerto[/eluser]
That worked perfectly the first time! Thanks so much!


Controlling URL Suffix - El Forum - 04-17-2010

[eluser]skunkbad[/eluser]
This is odd. I am testing with a URL suffix set in config/config, but I don't see it added to my paginated links...


Controlling URL Suffix - El Forum - 08-25-2010

[eluser]mikepuerto[/eluser]
Sorry to dig this one back up but... I have come across the need to set a different url suffix for a single controller. I tried using

Code:
$this->config->set_item('url_suffix', 'html');

Is this possible from the controller?