[TYPO3-mvc] Use xml instead of html format

Steffen Müller typo3 at t3node.com
Mon Oct 18 21:36:11 CEST 2010


Hi.

On 18.10.2010 10:38 Stefan Isak wrote:
> Therefore you can set the format within your controller like
> $this->request->setFormat("xml");
> But I am not sure if it's nice to do so.
> 

No prob if there's only one format allowed. Otherwise handle with care,
because it overrides valid values from the request. What if you need to
set the format via URI?


> If it's possible to configure a controllers default format, I'd like to know
> it as well :)

Maybe Tx_Extbase_Utility_Extension::configurePlugin() should be extended
to override the default actions format?

-- 
cheers,
Steffen

TYPO3 Blog: http://www.t3node.com/
Microblog:  http://twitter.com/t3node



More information about the TYPO3-project-typo3v4mvc mailing list