Browse Source

Merge pull request #1392 from Bethrezen/patch-1

Removed extra parenthesis in code example
tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
08cd4e829e
  1. 2
      docs/guide/controller.md

2
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]);

Loading…
Cancel
Save