From 4aafaa6cd07d03b01b652affcdb13f126cfecde7 Mon Sep 17 00:00:00 2001 From: Zhigang Song <1005411480a@gmail.com> Date: Mon, 9 Nov 2015 11:37:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/guide-zh-CN/structure-controllers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide-zh-CN/structure-controllers.md b/docs/guide-zh-CN/structure-controllers.md index 83c4fa9701..1971fed565 100644 --- a/docs/guide-zh-CN/structure-controllers.md +++ b/docs/guide-zh-CN/structure-controllers.md @@ -334,7 +334,7 @@ class PostController extends Controller * `http://hostname/index.php?r=post/view`: 会抛出[[yii\web\BadRequestHttpException]] 异常 因为请求没有提供参数给必须赋值参数`$id`; * `http://hostname/index.php?r=post/view&id[]=123`: 会抛出[[yii\web\BadRequestHttpException]] 异常 - 因为`$id` 参数收到数字值 `['123']`而不是字符串. + 因为`$id` 参数收到数组值 `['123']`而不是字符串. 如果想让操作参数接收数组值,需要指定$id为`array`,如下所示: