diff --git a/docs/guide-zh-CN/structure-controllers.md b/docs/guide-zh-CN/structure-controllers.md index 1d9494b8e5..9567413f26 100644 --- a/docs/guide-zh-CN/structure-controllers.md +++ b/docs/guide-zh-CN/structure-controllers.md @@ -361,7 +361,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`,如下所示: