[TYPO3-dev] Error-Messages in ListView of new Backend
Steffen Kamper
steffen at sk-typo3.de
Fri Apr 11 13:28:13 CEST 2008
"Stefan Geith" <typo3dev2008.nospam1 at geithware.de> schrieb im Newsbeitrag
news:mailman.5002.1207911967.3430.typo3-dev at lists.netfielders.de...
> Steffen Kamper schrieb:
>> ...
>>> <snip>
>>> if (!is_array($TCA[$table]['columns'])) {
>>> echo "ERROR: Table '$table' - no columns available! <br />";
>>> } else {
>>> foreach($TCA[$table]['columns'] as $fN => $fieldValue) {
>>> ...
>>> </snip>
>>> I think even this unstyled/untranslated message is better than a
>>> php-error - right ?
>>>
>>> -
>>
>> please no echo's!
>>
>> The general problem is that any warnings and debug messages are printed
>> out. This is an "old" problem of the docheaders because there are
>> positioned absolute and not accessible any more if any Message is printed
>> out on top.
>>
>> Solution would be to buffer the output and put it in EXTRAHEADER
>
> How does this work ?
> I mean: how do I get text into EXTRAHEADER ?
> I'd write a patch for this, if I knew where/how to put the output ...
>
> -
>
i didn't digged into yet, but principe should be:
start buffering use ob_starts()
in template.php look for the EXTRAHEADER-Marker and append buffer if
something in it
look in corelist, jeff made a patch for extraheader information and an
example extension how to use
vg Steffen
More information about the TYPO3-dev
mailing list