Welcome Guest, Not a member yet? Register   Sign In
Anyway to set $config['url_suffix'] during runtime?
#1

[eluser]gunnarflax[/eluser]
Hi everybody!

I'm looking for a way to set the url suffix during runtime. In my CMS the user gets the option to use "Pretty URLs" and the setting is stored in a database.

I can't use hooks since they can't be defined when the controller is reached in the execution order. If I set:
Code:
$this->config->set_item('url_suffix', 'html');

It doesn't show up in the URL since the controller has already been executed. Any suggestions? Will it be enough to change the value in the URI-class object or must I change the value in a whole bunch of instances?


Messages In This Thread
Anyway to set $config['url_suffix'] during runtime? - by El Forum - 07-06-2011, 11:30 AM
Anyway to set $config['url_suffix'] during runtime? - by El Forum - 07-06-2011, 06:06 PM
Anyway to set $config['url_suffix'] during runtime? - by El Forum - 07-07-2011, 01:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB