Skip to content

Instantly share code, notes, and snippets.

@enricostano
Created June 9, 2012 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enricostano/2901838 to your computer and use it in GitHub Desktop.
Save enricostano/2901838 to your computer and use it in GitHub Desktop.
Show Action in GaraController
public function showAction($gid)
{
$em = $this->getDoctrine()->getEntityManager();
$gara = $em->getRepository('StanoSasDocumentBundle:Gara')
->find($gid);
if (!$gara){
throw $this->createNotFoundException('Unable to find Gara.');
}
return $this->render('StanoSasDocumentBundle:Gara:show.html.twig', array(
'gara' => $gara,
'attachments' => $attachments
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment