Welcome Guest, Not a member yet? Register   Sign In
New problem in $_GET due to removing index.php in CI 2.0.2
#8

[eluser]Ali Fattahi[/eluser]
Hello
I Solved the problem Big Grin
in MY_Input i wrote the code :

Code:
function get($index = NULL, $xss_clean = FALSE)
{
    $query = parse_url($_SERVER['REQUEST_URI'],PHP_URL_QUERY);
    $query = split('&',$query);
    foreach ($query as $key=>$value)
    {
        $spl = split('=',$query[$key]);
        $res[$spl[0]] = $spl[1];
    }
    $_GET = $res;
    // Check if a field has been provided
    if ($index === NULL AND ! empty($_GET))
    {
        $get = array();
            // loop through the full _GET array
        foreach (array_keys($_GET) as $key)
        {
            $get[$key] = $this->_fetch_from_array($_GET, $key, $xss_clean);
        }
        return $get;
    }
        return $this->_fetch_from_array($_GET, $index, $xss_clean);
}


Messages In This Thread
New problem in $_GET due to removing index.php in CI 2.0.2 - by El Forum - 06-15-2011, 12:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB