query strings question |
[eluser]Unknown[/eluser]
The current project I'm working on does not require any search-engine friendliness, so I'm much rather to use query strings instead of CI's segments. It's probably more of a habbit thing really. As an example of Codeigniter's query string usage, I dug into the code of my fresh installation of Expression Egine, since it's written on CI and uses query strings in its backend app. What bothers me the most is: First. config.php in EE's config folder contains lines: Code: $config['enable_query_strings'] = FALSE; Second. After clicking through the interface of EE's app I discovered that my URL looks like this Code: http://ee/system/index.php/index.php/index.php/index.php?S=b14ceb15f0d585360299d9b7d85beed0b0fae7ee&D=cp&C=tools
[eluser]Naveed Hasan[/eluser]
CASE 1: Code: $config['allow_get_array'] = TRUE; The above allows Get Params in General CASE 2: Code: $config['enable_query_strings'] = FALSE; In the above, say, 'enable_query_strings' is set to "TRUE", then the URL http://localhost/yoursite/index.php?c=we...ow_content will cause a controller named "welcome" to be invoked. And, inside it, the function "show_content" will also be called. In CASE 1, the controller "welcome" will not be invoked even if the same URL is used. |
Welcome Guest, Not a member yet? Register Sign In |