Welcome Guest, Not a member yet? Register   Sign In
need to use $_GET on one page
#2

[eluser]Imkow@CN[/eluser]
my english isn't great , so i cut the following piece directly from ci docs.
Quote:Enabling Query Strings
In some cases you might prefer to use query strings URLs:

index.php?c=products&m=view&id=345

CodeIgniter optionally supports this capability, which can be enabled in your application/config.php file. If you open your config file you'll see these items:

$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';

If you change "enable_query_strings" to TRUE this feature will become active. Your controllers and functions will then be accessible using the "trigger" words you've set to invoke your controllers and methods:

index.php?c=controller&m=method

Please note: If you are using query strings you will have to build your own URLs, rather than utilizing the URL helpers (and other helpers that generate URLs, like some of the form helpers) as these are designed to work with segment based URLs.


Messages In This Thread
need to use $_GET on one page - by El Forum - 07-21-2007, 05:31 AM
need to use $_GET on one page - by El Forum - 07-21-2007, 06:47 AM
need to use $_GET on one page - by El Forum - 07-21-2007, 06:51 AM
need to use $_GET on one page - by El Forum - 07-21-2007, 07:10 AM
need to use $_GET on one page - by El Forum - 07-21-2007, 01:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB