public function indexAction()
 {
     $em = $this->getDoctrine()->getManager();
     $timestamp = time();
     $token = Document::getToken($timestamp);
     return $this->render('RenovateMainBundle:Documents:index.html.twig', array('timestamp' => $timestamp, 'token' => $token, 'availableTypes' => Document::getAvailableTypesInString()));
 }
 public function indexAction()
 {
     $timestamp = time();
     $token = Document::getToken($timestamp);
     $parameters = array('timestamp' => $timestamp, 'token' => $token);
     return $this->render('RenovateMainBundle:Payments:index.html.twig', $parameters);
 }
 public function indexAction()
 {
     $timestamp = time();
     $token = Document::getToken($timestamp);
     $parameters = array('timestamp' => $timestamp, 'token' => $token);
     $parameters['page'] = $this->get('renovate.pages')->getPageForUrl($this->getRequest()->getUri());
     return $this->render('RenovateMainBundle:Results:index.html.twig', $parameters);
 }
 public function showShareAction($share_name_translit)
 {
     $timestamp = time();
     $token = Document::getToken($timestamp);
     $em = $this->getDoctrine()->getManager();
     $share = $em->getRepository("RenovateMainBundle:Share")->findOneByNameTranslit($share_name_translit);
     if ($share == NULL) {
         return $this->redirect($this->generateUrl('renovate_main_homepage'));
     }
     $parameters = array('share' => $share, 'timestamp' => $timestamp, 'token' => $token);
     $parameters['page'] = $this->get('renovate.pages')->getPageForUrl($this->getRequest()->getUri());
     return $this->render('RenovateMainBundle:Shares:showShare.html.twig', $parameters);
 }