Commit c1b01820ac35d39b8ebae4feea083f25ff5bd8b9
1 parent
bca17da7
test
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
frontend/controllers/AccountsController.php
| @@ -122,7 +122,7 @@ | @@ -122,7 +122,7 @@ | ||
| 122 | $blog = new Blog(); | 122 | $blog = new Blog(); |
| 123 | $post = \Yii::$app->request->post(); | 123 | $post = \Yii::$app->request->post(); |
| 124 | if($blog->load($post) && $blog->save()) { | 124 | if($blog->load($post) && $blog->save()) { |
| 125 | - return $this->redirect('blog'); | 125 | + return $this->redirect(['blog-update', 'id' => $blog->blog_id]); |
| 126 | } else { | 126 | } else { |
| 127 | return $this->render('_blog_form', [ 'blog' => $blog ]); | 127 | return $this->render('_blog_form', [ 'blog' => $blog ]); |
| 128 | } | 128 | } |
| @@ -437,7 +437,7 @@ | @@ -437,7 +437,7 @@ | ||
| 437 | foreach($project->paymentInput as $one_payment) { | 437 | foreach($project->paymentInput as $one_payment) { |
| 438 | $project->link('payments', Payment::findOne($one_payment)); | 438 | $project->link('payments', Payment::findOne($one_payment)); |
| 439 | } | 439 | } |
| 440 | - return $this->redirect('projects'); | 440 | + return $this->redirect(['projects-update', 'id' => $project->project_id]); |
| 441 | } | 441 | } |
| 442 | } | 442 | } |
| 443 | return $this->render('_projects_form', [ | 443 | return $this->render('_projects_form', [ |