Welcome Guest, Not a member yet? Register   Sign In
Controlling URL Suffix
#1

[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!
#2

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

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

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

[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...
#5

[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?




Theme © iAndrew 2016 - Forum software by © MyBB