Ok lets see here:
Controller action - Should set() an array to the view and in the view
you parse the array to xml (this is your xml file). You would then
also set which xslt file it should be aswell.
function index() {
$this->set('users', $this->User->find('all'));
$this->set('xslt', '/xslt/index.xsl');
$this->header('Content-type: text/xml');
}
View - In the view just loop the array and create an xml and other
properties you need.
The hard part here is linking the xml to an xslt sheet. You could
create a controller called Xslt and create an action for each layout.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---