[FLOW3-general] Trying to REST ;)
Bastian Waidelich
bastian at typo3.org
Thu Nov 10 09:31:22 CET 2011
Oliver Wand wrote:
Hi Oliver,
> Looking at getTemplatePathAndFilename FLUID obviously only checks the
> action name and looks for an .html template but doesn't switch to xml then?
in TemplateView::expandGenericPathPattern() in line 430 (see [1]) Fluid
replaces "@format" in the template file pattern
('@templateRoot/@subpackage/@controller/@action. at format') with the
current format from the request.
As I wrote this works fine for me with html, json & xml from the browser
and via curl.. Is your code somewhere available or do you want to send
it to me via mail, then I could have a quick look at it.
Best,
Bastian
[1]
http://git.typo3.org/FLOW3/Packages/TYPO3.Fluid.git?a=blob;f=Classes/View/TemplateView.php;h=d5ac7d1dd34aa5b1ab8fd66c90a1db3ba9569cd0;hb=HEAD#l430
More information about the FLOW3-general
mailing list