Merge pull request #1392 from Bethrezen/patch-1

Removed extra parenthesis in code example
This commit is contained in:
Alexander Makarov
2013-12-02 03:01:09 -08:00

View File

@@ -125,7 +125,7 @@ class BlogController extends Controller
throw new NotFoundHttpException; throw new NotFoundHttpException;
} }
if (\Yii::$app->request->isPost)) { if (\Yii::$app->request->isPost) {
$post->load($_POST); $post->load($_POST);
if ($post->save()) { if ($post->save()) {
$this->redirect(['view', 'id' => $post->id]); $this->redirect(['view', 'id' => $post->id]);