Try this as well: option 1: - turn on Router::parseExtensions(); in routes.php - use xml extension for url, then the defaut.ctp in xml folder will be used by cake. - more info http://groups.google.com/group/cake-php/msg/3baf7b8e7256aae1
option 2: the default.ctp only outputs xml declaration <?php e($xml->header()); ?> so if you can output the same from view, you dont need the xml layout. (but remember to set $this->layout=false) On Dec 5, 2:05 pm, jarmstrong <[EMAIL PROTECTED]> wrote: > I believe that is so you can have the same layout name with different actual > layouts. > > For instance layout='newsfeed' or 'productlist', you might want a Html, Rss, > and XML output. > > Andreas-70 wrote: > > > I used this one and it works. > > > $this->layoutPath = 'xml'; > > $this->layout = 'default'; > > > I'm wondering though why have they even bothered putting them into a > > folder in the first place? > > -- > View this message in > context:http://www.nabble.com/Xml-layout-name-tf4938385.html#a14181184 > Sent from the CakePHP mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
