[Typo3-dev] Debug info into document body.

Michael Stucki michael at typo3.org
Thu Apr 14 01:15:57 CEST 2005


Paolo Nugnes wrote:

>> $content = t3lib_div::view_array($myArray);
> 
> or even, into your extension,
> 
> $content .= t3lib_div::debug($myArrayOrVariable);

No. The difference is that t3lib_div::debug does not return anything but
echoes the debug content. Therefore the debug output is written before the
first character of generated HTML has been sent by TYPO3 (= it is outside
of the document body, see subject).

t3lib_div::view_array is exactly what was needed because it returns the
debug content to the calling function.

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/




More information about the TYPO3-dev mailing list