public function feedAction($_format)
    {
        $format   = $_format == 'xml' ? 'rss' : $_format;
        $articles = $this->get('vince_cms.repository.article')->findAllPublishedIndexableOrdered();

        return $this->render(sprintf('VinceCmsBundle:Templates:feed.%s.twig', $format), array(
                'articles' => $articles,
                'id'       => sha1($this->get('router')->generate('cms_feed', array('_format' => $format), true)),
            )
        );
    }
public function feedAction($_format)
    {
        $format   = $_format == 'xml' ? 'rss' : $_format;
        $articles = $this->get('vince_cms.repository.article')->findAllPublishedIndexableOrdered();

        return $this->render(sprintf('VinceCmsBundle:Templates:feed.%s.twig', $format), array(
                'articles' => $articles,
                'id'       => sha1($this->get('router')->generate('cms_feed', array('_format' => $format), true)),
            )
        );
    }
public function feedAction ( $ _format ) { $ format = $ _format == 'xml' ? 'rss' : $ _format ; $ articles = $ this -> get ( 'vince_cms.repository.article' ) -> findAllPublishedIndexableOrdered ( ) ; return $ this -> render ( sprintf ( 'VinceCmsBundle:Templates:feed.%s.twig' , $ format ) , array ( 'articles' => $ articles , 'id' => sha1 ( $ this -> get ( 'router' ) -> generate ( 'cms_feed' , array ( '_format' => $ format ) , true ) ) , ) ) ; }
Display feed with all published Articles ordered by start publication date

@author Vincent Chalamon <vincentchalamon@gmail.com>

@param string $_format Request format

@return Response
Display feed with all published Articles ordered by start publication date