• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set config item 'permitted_uri_chars' individually for a specific controller ?

Hi there, I'm keen on keeping the default permitted characters globally for my CI install but on one controller I really need to allow flexibility on what characters are permitted for the URI.

Is there any way to set the item dynamically when required in the necessary controller(s) ? I tried using $this->config->set_item('permitted_uri_chars', 'xxxx'); but it had no effect.

Is it at all possible ?


- Mike

[eluser]Pascal Kriete[/eluser]
The permitted uri characters are checked in the URI class, which is called from the router. This is executed before the controller runs, so you won't be able to change it dynamically.

If you give us a little more information someone can probably help you come up with a viable solution.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.