9
votes

I tried to implement rss feed following this simple explanation from cake book http://book.cakephp.org/2.0/en/core-libraries/helpers/rss.html I got this error "Class 'DOMDocument' not found in lib/Cake/Utility/Xml.php on line 99"

Any clue?

2

2 Answers

20
votes

Install php-xml package that provides the needed files to use the DOMDocument class

6
votes

I had the same trouble, with installed package. I tried to load it with new DOMDocument(); but I had to use $dom = new \DOMDocument();

Hope this helps people using CakePHP 3.x