Browse Source

Removed extra parenthesis in code example

tags/2.0.0-beta
Alexander Kozhevnikov 11 years ago
parent
commit
ce1014f690
  1. 2
      docs/guide/controller.md

2
docs/guide/controller.md

@ -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]);

Loading…
Cancel
Save