Cakephp class DOMDocument not found

I tried to implement the rss channel, following this simple explanation from the 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?

+8
cakephp domdocument
source share
2 answers

Install the php-xml package, which provides the necessary files for using the DOMDocument class

+19
source share

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

Hope this helps people using CakePHP 3.x

+2
source share

All Articles