One of the things I like the most about CI is that it doesn’t force you to write code in strict and specific ways.. it doesn’t shove its way of doing things down your neck… it doesn’t sneak around doing things behind your back.. you’re the coder and you can code however you like.
THE EXCEPTION: $_GET
The CI philosophy seems to be: worship the POST method and kill GET
Code Igniter User Guide
GET data is simply disallowed by Code Igniter since the system utilizes URI segments rather than traditional URL query strings (unless you have the query string option enabled in your config file). The global GET array is unset by the Input class during system initialization.
This is DUMB! It seems like this fundamental design decision was taken without any thought or it was assumed that GET vars (query string e.g. ?var1=value&var2=value ) could not coexist with the segment approach (e.g. http://localhost/ci-get-fixed/seg1/seg2/?var1=value&var2=value ).. like it had to be one or the other.
THIS IS SUCH AN ANNOYING BUG!
It’s easy to fix but the fact that CI works this way as standard is sooo stupid!
Please fix this bug and set Code Igniter free ![]()
EDIT/CLARIFICATION:
The URI segment approach is great for links but form submissions don’t work this way (without client-side scripting).
http://localhost/store/search?q=search+terms
GET and POST have different uses as defined by the HTTP standard (RFC 2616). Submitting all form data using the POST method is improper and has adverse effects.
Both GET and POST have their place.
RELATED THREADS:
Thread: GET params (strange behaviour) ?
Thread: Input enhancements - (optionally) allow GET values
Thread: How to create mix urls (Segment + Querystring)
Thread: GET variables gone in 1.5.1 ?
Thread: $_GET value to controller
Thread: support for less than two GET parameters within the url
Thread: Silly Problem passing variables between controllers
Thread: $_GET[] causing problems with 1.3
...
I would link to a forum search but GET variables (query strings) aren’t supported ![]()
http://codeigniter.com/forums/do_search/?keywords=query+string
