Commit 8520be08 by Qiang Xue

Fixes issue #174: make URL parameters available in $_GET.

parent aad6d7d9
...@@ -69,8 +69,8 @@ class Request extends \yii\base\Request ...@@ -69,8 +69,8 @@ class Request extends \yii\base\Request
$result = Yii::$app->getUrlManager()->parseRequest($this); $result = Yii::$app->getUrlManager()->parseRequest($this);
if ($result !== false) { if ($result !== false) {
list ($route, $params) = $result; list ($route, $params) = $result;
$params = array_merge($_GET, $params); $_GET = array_merge($_GET, $params);
return array($route, $params); return array($route, $_GET);
} else { } else {
throw new HttpException(404, Yii::t('yii|Page not found.')); throw new HttpException(404, Yii::t('yii|Page not found.'));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment