Welcome Guest, Not a member yet? Register   Sign In
Misleading passage in user_guide
#1

[eluser]Majd Taby[/eluser]
Hey, I was just whining about the lack of $_GET in the IRC channel when I was made aware of:

Code:
/*
|--------------------------------------------------------------------------
| Enable Query Strings
|--------------------------------------------------------------------------
|
| By default Code Igniter uses search-engine friendly segment based URLs:
| www.your-site.com/who/what/where/
|
| You can optionally enable standard query string based URLs:
| www.your-site.com?who=me&what=something&where=here
|
| Options are: TRUE or FALSE (boolean)
|
| The two other items let you set the query string "words" that will
| invoke your controllers and its functions:
| www.your-site.com/index.php?c=controller&m=function
|
| Please note that some of the helpers won't work as expected when
| this feature is enabled, since Code Igniter is designed primarily to
| use segment based URLs.
|
*/
$config['enable_query_strings'] = TRUE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';

Which I had no idea existed...considering I read the whole user guide, then I went back to it, and it says:

"GET data is simply disallowed by CodeIgniter 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."

Which is misleading, I feel like this would be much better:

"Unless configured otherwise, GET data is unset by default. The reason being that the system utilizes URI segments rather than traditional URL query strings. You can still call controllers/methods through the URL by defining controller_trigger and function_trigger in the config.php file"

...or something like that.


Messages In This Thread
Misleading passage in user_guide - by El Forum - 03-09-2008, 10:55 PM
Misleading passage in user_guide - by El Forum - 03-09-2008, 11:03 PM
Misleading passage in user_guide - by El Forum - 03-09-2008, 11:05 PM
Misleading passage in user_guide - by El Forum - 03-10-2008, 12:19 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 12:23 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 01:56 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 02:15 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 02:18 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 02:50 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 05:09 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 07:41 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 08:09 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 08:49 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 09:09 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 09:11 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 09:38 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 09:40 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 09:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB