Tuesday, November 27, 2012

Re: XML doctype

echo $this->Xml->header();
// generates: <?xml version="1.0" encoding="UTF-8" ?>

You can pass in a different version number and encoding type as parameters of the header method.

echo $this->Xml->header(array('version'=>'1.1'));
// generates: <?xml version="1.1" encoding="UTF-8" ?>




--
Thanks & Regards

Chetan Patel

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: