Welcome Guest, Not a member yet? Register   Sign In
Using codeigniter in QUERY_STRING mode with php fast CGI
#6

(This post was last modified: 03-20-2015, 08:30 AM by peter.)

The $this->input->get('data') change nothing, is still empty.

I use this controler :

PHP Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class 
Site extends CI_Controller {

    public function 
test() {

        echo 
'<pre>';
        
print_r($_GET);
        echo 
'</pre>';

        echo 
$this->input->get('data');
    }




This config :

PHP Code:
$config['uri_protocol'] = 'QUERY_STRING';
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE

And this htaccess :

Code:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

My website is on php fastcgi hosting.

$_GET[] and $this->input->get('data') are still empty when I am trying this url : http://site.com/site/test?data=mydata

Thank you.
Reply


Messages In This Thread
RE: Using codeigniter in QUERY_STRING mode with php fast CGI - by peter - 03-20-2015, 08:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB