CodeIgniter: passing method parameters when using “enable_query_strings”?

It seems that if you want to use "enable_query_strings" = TRUE, you cannot pass parameters to function X() This is what is says in the user guide 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 To get around this you'd have to do this: http://localhost/ci_sample/index. Php? C=Y&m=X¶m1=bla¶m2=foo function X() { $param1 = $this->input->get('param1'); $param2 = $this->input->get('param2'); }.

It seems that if you want to use "enable_query_strings" = TRUE, you cannot pass parameters to function X(). This is what is says in the user guide 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. To get around this you'd have to do this: http://localhost/ci_sample/index.

Php? C=Y&m=X¶m1=bla¶m2=foo function X() { $param1 = $this->input->get('param1'); $param2 = $this->input->get('param2'); }.

You don't have to use query strings just because you can't remove index. Php from the URL, you can use URL's like this: example. Com/index.

Php/controller/method/param1/param2. If you enable query strings in config. Php and also set uri_protocol to "PATH_INFO" you can use both.

Like this: example. Com/index. Php/controller/method/param1/param2/?

Param3=wellhellothere Your problem with getting mod_rewrite to work is probably related to the fact that you're running CI in a subdirectory. RewriteBase /ci_sample/ directly after RewriteEngine On should do the trick. :).

You don't have to use query strings just because you can't remove index. Php from the URL, you can use URL's like this: example.com/index.php/controller/method/param1/param2. If you enable query strings in config.

Php and also set uri_protocol to "PATH_INFO" you can use both. Like this: example.com/index.php/controller/method/param1/param2/? Your problem with getting mod_rewrite to work is probably related to the fact that you're running CI in a subdirectory.

RewriteBase /ci_sample/ directly after RewriteEngine On should do the trick.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions