Skip to content

Commit

Permalink
Redirect post update
Browse files Browse the repository at this point in the history
  • Loading branch information
mgallego committed Jul 29, 2013
1 parent 3985779 commit 972afcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MGP/ImageBundle/Controller/ImageController.php
Expand Up @@ -41,7 +41,9 @@ public function uploadAction(Request $request)
if (!$formHandler->process()) {
throw new \Exception($formHandler->showFormErrors());
}
return $this->redirect($this->generateUrl('img_view', ["slug" => $image->getSlug()]));
}

return $this->render('MGPImageBundle:Image:upload.html.twig', array('form' => $form->createView()));
}

Expand Down

0 comments on commit 972afcd

Please sign in to comment.