[eluser]Joshua Baker[/eluser]
This solution seems to be working for me in applications where I need to have access to $_GET.
Basically I override the core input class and use $_SERVER['REQUEST_URI'] to repopulate $_GET.
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Input extends CI_Input
{
function MY_Input()
{
parent::CI_Input();
$pos = strrpos($_SERVER['REQUEST_URI'], '?');
$qry = is_int($pos) ? substr($_SERVER['REQUEST_URI'], ++$pos) : '';
parse_str($qry, $_GET);
}
}
Getting a parameter is as simple as using the default method.
Code:
$this->input->get('index');
Let me know if this works for you or if you have a better solution.