Hi
I would use XML in my application.
I define my default layout in xml like :

<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT\n");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
header("Cache-Control: no-cache, must-revalidate" );
header("Pragma: no-cache" );
header("Content-type:text/xml");
print ("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
?>
<? echo $content_for_layout; ?>

Now when I call a page like : /{controller}/{action}.xml I get this
error :

Error interpretation XML: non well-formed
Line number 2, column 3:
<? echo $content_for_layout; ?>
---^

Can someone help me about this?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to