Welcome Guest, Not a member yet? Register   Sign In
Mix normal URL's and standard query strings
#3

[eluser]Peter Denk[/eluser]
It is!
I just spent half a day figuring it out.

First of all, be sure to download the latest version of CI 2.0 Reactor or at least check that line 52 in system/core/input.php reads:

$this->_allow_get_array = (config_item('allow_get_array') === TRUE);

Also check in config.php that you have:

$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE;

Then you should be able to read the query-string with:

$variable = $this->input->get( 'variable' );

or if you want XSS-filtering:

$variable = $this->input->get( 'variable', TRUE );

I you prefer to always do XSS-filtering set

$config['global_xss_filtering'] = TRUE;

in config.php

get() is part of the Input-class (http://ellislab.com/codeigniter/user-gui...input.html)


Good luck!


Messages In This Thread
Mix normal URL's and standard query strings - by El Forum - 03-13-2011, 07:40 PM
Mix normal URL's and standard query strings - by El Forum - 03-13-2011, 10:22 PM
Mix normal URL's and standard query strings - by El Forum - 03-14-2011, 05:28 PM
Mix normal URL's and standard query strings - by El Forum - 03-15-2011, 10:11 PM
Mix normal URL's and standard query strings - by El Forum - 03-16-2011, 09:51 PM
Mix normal URL's and standard query strings - by El Forum - 03-16-2011, 11:36 PM
Mix normal URL's and standard query strings - by El Forum - 04-14-2011, 01:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB