public function indexAction()
    {
        $footerContentId = $this->container->getParameter('ezdemo.footer.content_id');
        $footerContent = $this->getRepository()->getContentService()->loadContent($footerContentId);

        $response = new Response();
        $response->setPublic();
        $response->setSharedMaxAge(86400);
        $response->headers->set('X-Location-Id', $footerContent->contentInfo->mainLocationId);
        $response->setVary('X-User-Hash');

        return $this->render(
            'eZDemoBundle::page_footer.html.twig',
            array('content' => $footerContent),
            $response
        );
    }
public function indexAction()
    {
        $footerContentId = $this->container->getParameter('ezdemo.footer.content_id');
        $footerContent = $this->getRepository()->getContentService()->loadContent($footerContentId);

        $response = new Response();
        $response->setPublic();
        $response->setSharedMaxAge(86400);
        $response->headers->set('X-Location-Id', $footerContent->contentInfo->mainLocationId);
        $response->setVary('X-User-Hash');

        return $this->render(
            'eZDemoBundle::page_footer.html.twig',
            array('content' => $footerContent),
            $response
        );
    }
public function indexAction ( ) { $ footerContentId = $ this -> container -> getParameter ( 'ezdemo.footer.content_id' ) ; $ footerContent = $ this -> getRepository ( ) -> getContentService ( ) -> loadContent ( $ footerContentId ) ; $ response = new Response ( ) ; $ response -> setPublic ( ) ; $ response -> setSharedMaxAge ( 86400 ) ; $ response -> headers -> set ( 'X-Location-Id' , $ footerContent -> contentInfo -> mainLocationId ) ; $ response -> setVary ( 'X-User-Hash' ) ; return $ this -> render ( 'eZDemoBundle::page_footer.html.twig' , array ( 'content' => $ footerContent ) , $ response ) ; }
Footer main action.

@return Response
Footer main action .