Example #1
0
 /**
  * Gets the thread for a given id.
  *
  * @param string $id
  *
  * @return View
  */
 public function getAction($id)
 {
     $website = $this->getDoctrine()->getRepository('AppBundle:Websites')->find($id);
     if (null === $website) {
         throw new NotFoundHttpException(sprintf("Thread with id '%s' could not be found.", $id));
     }
     $view = new View($website);
     $view->setTemplate('admin2/layout.html.twig');
     return $this->handleView($view);
 }