CodeIgniter Forums
Page not found using GET parameters - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Page not found using GET parameters (/showthread.php?tid=44309)



Page not found using GET parameters - El Forum - 08-10-2011

[eluser]IvanBlue[/eluser]
Hello, I've been using regular codeigniter parameters but now I need to pass a parameter using GET but when I pass the parameter I see that the browser can't found the page.

This is my code:

Code:
function get_test()
{
    $oid = $this->input->get('oid');
    echo "oid: " . $oid;
}

How can I make this work? Thanks.


Page not found using GET parameters - El Forum - 08-10-2011

[eluser]regal2157[/eluser]
http://ellislab.com/forums/viewthread/139807/

Give that a read.

Depends on your usage, but I would probably just utilize the url or post methods. Might even be easier.