[FLOW3-general] .xml output
Robert Lemke
robert at typo3.org
Fri Sep 28 12:47:28 CEST 2012
Hi Mario,
On 28.09.2012, at 10:00, mario chiari <m at mariochiari.net> wrote:
> what is the simplest way to return a .xml file?
>
> I tried the simple minded way to define a xmlAction controller, and
> either a Xml.html or a Xml.xml fluid template, but clearly it does not
> work.
>
> What I need is there (client side), but I am not able to pass it as
> a .xml file.
>
> It shuld not be so difficult.
the most simple way is to just return the xml in your action (without any
template):
/**
* @return string The xml
*/
public function exportAction() {
// build some xml here and then …
return $xml;
}
--
Robert Lemke
Lead Developer TYPO3 Phoenix and FLOW3
Co-Founder TYPO3 Association
Blog: robertlemke.de/blog
Get involved: typo3.org – flow3.org
More information about the FLOW3-general
mailing list