public function addAction()
 {
     $request = $this->getRequest();
     $this->layout('layout/ajax_layout.phtml');
     if ($request->isPost()) {
         $c = new Comment();
         $c->setCommentAuthor($request->getPost('comment_author'));
         $c->setCommentAuthorIp($_SERVER['REMOTE_ADDR']);
         $c->setCommentContent($request->getPost('comment_content'));
         $c->setCommentDate(new \DateTime('now'));
         $c->setCommentTitle("");
         $this->getEntityManager()->persist($c);
         $this->getEntityManager()->flush();
         $this->flashMessenger()->addInfoMessage("Comentário postado com sucesso!");
         return $this->redirect()->toRoute('home');
     }
 }