示例#1
0
 /**
  * @Route("/thankyou")
  * @Route("/thankyou/")
  */
 public function thankyouAction($getTitle, $getPostContent)
 {
     $twitter = new twitter();
     $twitter->setPostContent($getPostContent);
     $twitter->setTitle($getTitle);
     $twitter->setCreated(time());
     $twitter->setLastEdit($getTitle);
     $em = $this->getDoctrine()->getManager();
     $em->persist($twitter);
     $em->flush();
     return $this->render('twitter/success.html.twig', array('getTitle' => $getTitle, 'getPostContent' => $getPostContent, 'current_year' => date("Y")));
 }