Are you calling it with "new DomDocument" or "new \DomDocument"? Since
DomDocument is in the Root Namespace, you have to add the "\" at the
beginning or
define DomDocument using the "use \DomDocument;" statement.
If that's not the case, please show us some code. (http://gist.github.com)
Am Fre
Any reason why DOMDocument doesn't work in a CakePHP controller? It says
class not found. If I move the new DOMDocument code into a standalone php
file and put it in webroot, it works fine.
How do I use DOMDocument inside a controller/model?
--
Like Us on FaceBook https://www.facebook.com/Cake