Reputation: 990
Accessing this url: http://sampledomain.com/controller/action/1?t=test&p=1
I tried this:
var_dump(Yii::$app->request->get());
And this:
var_dump($_GET);
The result is:
array(0) {}
But when I tried to use the $_GET
in a regular php script, it displays the those variables.
Is there anyone here experience this also? Thanks.
Upvotes: 0
Views: 373
Reputation: 990
I figured it out, it's the configuration on the server. This is what I'm doing.
try_files $uri $uri/ /index.php;
It should be like this
try_files $uri $uri/ /index.php$is_args$args;
Upvotes: 1