mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 22:09:48 +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;
|
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]);
|
||||||
|
|||||||
Reference in New Issue
Block a user