1
votes

I'm new in cakephp. So, I'm playing with it while learning and discover more things in cakephp.

I'm using cakephp 2.2.2 release. I would like to generate RSS feed for my website. So I followed 100% RSShelper tutorial here: http://book.cakephp.org/2.0/en/core-libraries/helpers/rss.html

But there's a problem with my generated RSS feed. W3's feed validation indicate that my RSS is not validate, here the result: http://validator.w3.org/appc/check.cgi?url=http%3A%2F%2Fmalaysia60.info%2Fberitas%2Findex.rss

I've no idea what's wrong. I've check and remove extra spaces in the View, RSS default layout and controller in cakephp files.

Could someone tell me what's wrong with this RSShelper. Thank you.

1

1 Answers

0
votes

I think you get this validation error because the XML declaration is missing from your RSS file. Add the following snippet to the top of your layout: <?xml version="1.0"?> and the error should go away.