Browse Source

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

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
8520be08de
  1. 4
      framework/web/Request.php

4
framework/web/Request.php

@ -69,8 +69,8 @@ class Request extends \yii\base\Request
$result = Yii::$app->getUrlManager()->parseRequest($this);
if ($result !== false) {
list ($route, $params) = $result;
$params = array_merge($_GET, $params);
return array($route, $params);
$_GET = array_merge($_GET, $params);
return array($route, $_GET);
} else {
throw new HttpException(404, Yii::t('yii|Page not found.'));
}

Loading…
Cancel
Save