Try this
function beforeFilter() {
$this-RequestHandler-setContent('kml', 'text/xml');
// $this-RequestHandler-setContent('kml',
'application/vnd.google-earth.kml+xml');
}
On Thursday, September 24, 2009 7:01:18 AM UTC+2, Kyle Decot wrote:
I am attempting to create KML pages for my site but I'm not having any
luck. In my routes.php I have:
Router::parseExtensions('kml');
I have also created a KML layout at /app/layouts/kml/default.ctp
When I go to localhost/my_controller/index.kml though the default
layout is being used. How can I fix this? Thank you for any help you
can provide.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
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