![]() |
Possible to set enable_query_strings in a method? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Possible to set enable_query_strings in a method? (/showthread.php?tid=14926) |
Possible to set enable_query_strings in a method? - El Forum - 01-20-2009 [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 Possible to set enable_query_strings in a method? - El Forum - 01-20-2009 [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'); Possible to set enable_query_strings in a method? - El Forum - 01-20-2009 [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. |