Re: DOMDocument doesn't work in a controller

2015-02-18 Thread Daniel Schalla
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

DOMDocument doesn't work in a controller

2015-02-12 Thread HVan
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