Commit ce1014f6 by Alexander Kozhevnikov

Removed extra parenthesis in code example

parent 62ef3721
......@@ -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