mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 05:45:33 +08:00
guide WIP [skip ci]
This commit is contained in:
@@ -89,7 +89,7 @@ class ContentNegotiator extends ActionFilter implements BootstrapInterface
|
||||
* @var string the name of the GET parameter that specifies the response format.
|
||||
* Note that if the specified format does not exist in [[formats]], a [[UnsupportedMediaTypeHttpException]]
|
||||
* exception will be thrown. If the parameter value is empty or if this property is null,
|
||||
* the response format will be determined based on the `Accept` HTTP header.
|
||||
* the response format will be determined based on the `Accept` HTTP header only.
|
||||
* @see formats
|
||||
*/
|
||||
public $formatParam = '_format';
|
||||
@@ -97,7 +97,7 @@ class ContentNegotiator extends ActionFilter implements BootstrapInterface
|
||||
* @var string the name of the GET parameter that specifies the [[\yii\base\Application::language|application language]].
|
||||
* Note that if the specified language does not match any of [[languages]], the first language in [[languages]]
|
||||
* will be used. If the parameter value is empty or if this property is null,
|
||||
* the application language will be determined based on the `Accept-Language` HTTP header.
|
||||
* the application language will be determined based on the `Accept-Language` HTTP header only.
|
||||
* @see languages
|
||||
*/
|
||||
public $languageParam = '_lang';
|
||||
|
||||
Reference in New Issue
Block a user