This is a personal note kind of post.. So, those who knew already about this… just can skip..
. But for a short summary, to use the power of GET method by not setting the CI as Query string based URL.
Target To achieve:
http://localhost/myapp/mycontroller/mymethod/?possible=yes
create file MY_Input.php in your application/library/
[ Reason: SO that CI does not destroy GET Method ]
<?phpclass MY_Input extends CI_Input {function _sanitize_globals(){$this->allow_get_array = TRUE;parent::_sanitize_globals();}}
$config['permitted_uri_chars'] = ‘a-z 0-9~%?=&.:_\-’;$config['index_page'] = “”;
Options +FollowSymLinksOptions -IndexesDirectoryIndex index.phpRewriteEngine onRewriteCond $1 !^(index\.php|img|css|js|robots\.txt|favicon\.ico)RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php?/$1 [L,QSA]
http://localhost/myapp/mycontroller/index/?possible=yes