mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 13:58:24 +08:00
Merge pull request #1392 from Bethrezen/patch-1
Removed extra parenthesis in code example
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user