Commit 08cd4e82 by Alexander Makarov

Merge pull request #1392 from Bethrezen/patch-1

Removed extra parenthesis in code example
parents 62ef3721 ce1014f6
......@@ -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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment