[TYPO3-core] RFC: #9281: Add a method to easily do a HTTP redirect

Dmitry Dulepov [typo3] dmitry at typo3.org
Thu Sep 4 07:22:11 CEST 2008


Hi!

Steffen Kamper wrote:
>>> One good thing that we could add is "@ob_end_clean();" before the 
>>> first header(). This would cleanup any buffered output that already 
>>> started because it will be useless in case of redirect.
>> Yeah, we also thought of having a "header_sent()" call before that (we 
>> could then even throw an exception or error), however I think this 
>> handling should be left to the developers.
>>
> 
> imho not important. Dev who use that should take care of.

There is no point in common function than. Developers could take care of redirect themselves...

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/pages/book-reviews/presentation-zen-by-garr-reynolds/


More information about the TYPO3-team-core mailing list