diff --git a/docs/guide/controller.md b/docs/guide/controller.md index 97ffe49..584c738 100644 --- a/docs/guide/controller.md +++ b/docs/guide/controller.md @@ -125,7 +125,7 @@ class BlogController extends Controller throw new NotFoundHttpException; } - if (\Yii::$app->request->isPost)) { + if (\Yii::$app->request->isPost) { $post->load($_POST); if ($post->save()) { $this->redirect(['view', 'id' => $post->id]);