I’m trying to create a RSS feed in Symfony.
I’ve added the following route :
rss_every_content:
url: /rss/all
param: { module: content, action: index, sf_format: rss }
requirements:
sf_method: [get]
And I created a file called indexSuccess.rss.php in module/content/templates/ :
test message
But when I go to the url mysite/rss, all I get is an empty page ! No content at all, not even the debug toolbar… Help ! What is going on ?
I had the same problem as you. I noticed that
sf_format: xmlwithindexSuccess.xml.phpseems to work as long as you specify the RSS XML tag at the top like:From http://www.rss-tools.com/rss-example.htm
It’s a hack but I can’t see how else to do it.