From 3d878d7e1e97f4e65dea73b59d71636ec24db1cd Mon Sep 17 00:00:00 2001 From: chuangyeshuo <1427569517@qq.com> Date: Thu, 14 Feb 2019 17:18:43 +0800 Subject: [PATCH] Fixed constructor style in docs [skip ci] --- docs/guide-zh-CN/start-forms.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide-zh-CN/start-forms.md b/docs/guide-zh-CN/start-forms.md index 446a59ebf4..ec98899228 100644 --- a/docs/guide-zh-CN/start-forms.md +++ b/docs/guide-zh-CN/start-forms.md @@ -98,7 +98,7 @@ class SiteController extends Controller public function actionEntry() { - $model = new EntryForm; + $model = new EntryForm(); if ($model->load(Yii::$app->request->post()) && $model->validate()) { // 验证 $model 收到的数据