mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 02:13:17 +08:00
Merge pull request #1209 from egorpromo/eliminating-get-in-request
Must be one method to get _GET.
This commit is contained in:
@ -311,15 +311,6 @@ class Request extends \yii\base\Request
|
|||||||
return isset($_GET[$name]) ? $_GET[$name] : $defaultValue;
|
return isset($_GET[$name]) ? $_GET[$name] : $defaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the GET request parameter values.
|
|
||||||
* @return array the GET request parameter values
|
|
||||||
*/
|
|
||||||
public function getGet()
|
|
||||||
{
|
|
||||||
return $_GET;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the named POST parameter value.
|
* Returns the named POST parameter value.
|
||||||
* If the POST parameter does not exist, the second parameter to this method will be returned.
|
* If the POST parameter does not exist, the second parameter to this method will be returned.
|
||||||
|
|||||||
Reference in New Issue
Block a user