[TYPO3-mvc] Output from a CommandController
François Suter
fsu-lists at cobweb.ch
Thu Mar 14 16:23:43 CET 2013
Hi Bastian,
> the CommandController::output*() methods add the content to the current
> response. This is only rendered if you don't stop the execution
> otherwise and if the action does not return anything.
>
> Instead of *exit* or *die()* you should therefore use
> *CommandController::quit()*
Thanks for the hint. Actually I finally found that my script was
actually crashing due to some PHP error, but I was duped by my error
display being surprisingly turned off in my dev environment :-\ One
never checks the logs enough ;-)
outputLine() works as expected.
Cheers
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-project-typo3v4mvc
mailing list