Welcome Guest, Not a member yet? Register   Sign In
Possible to set enable_query_strings in a method?
#1

[eluser]whobutsb[/eluser]
Hello all,
I'm working with a calendar library that creates links with query strings to identify the year and the month. But it is only used on some methods in one controller. So I don't need to turn on $config['enable_query_strings'] for my entire application. I would like to be ale to set it in one or 2 methods within my code. Then when the user moves off that specific controller/method it will default back to false.

Thanks for the help!

Steve
#2

[eluser]GSV Sleeper Service[/eluser]
tricky. in theory you could use config->set_item() in your controller
Code:
$this->config->set_item('enable_query_strings', 'true');
but in practice there's a whole lot of routing going on before you even hit your controller, and the query string will already have been stripped. a pre-system hook might be the answer.
#3

[eluser]whobutsb[/eluser]
Your right on that one, setting the configuration didn't work. Hmm, now i'm scratching my head to get this to work. Thanks for the help anyways.




Theme © iAndrew 2016 - Forum software by © MyBB