• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unset GET

#1
[eluser]mironcaius[/eluser]
Hello,
I have read the documentation. Is their a good reason why the 2 systems could not run in parallel ?

For example have this link
http://localhost/codeigniter/index.php/welcome/test/?xx=3
and also have this:
http://localhost/codeigniter/index.php/welcome/test/3/
do the same thing

Can someone explain why the GET variables are unset using this code, in the Input class, function _sanitize_globals() method?

Code:
// Is $_GET data allowed? If not we'll set the $_GET to an empty array
        if ($this->allow_get_array == FALSE)
        {
            $_GET = array();
        }
        else
        {
            $_GET = $this->_clean_input_data($_GET);
        }
I also works if with routes: http://localhost/codeigniter/index.php/product/1?xx=2
$route['product/(:num)'] = "welcome/test/$1/"; { ["xx"]=> string(1) "2" }

Very good framework, simple organized and well commented.
I am asking this because it may be simple to have a method called test with 2 parameters but what happens when i have something like:
http://localhost/codeigniter/index.php/product/1/2/3/4/5/6/7/8/10
it would be much better to have it general until a certain point, then have ?cat_id=4&region_id=4&bla_id=5, what do you think ?


Messages In This Thread
unset GET - by El Forum - 06-22-2010, 05:21 AM
unset GET - by El Forum - 06-22-2010, 05:51 AM
unset GET - by El Forum - 06-22-2010, 08:11 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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