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

Dmitry Dulepov [typo3] dmitry at typo3.org
Wed Sep 3 19:19:27 CEST 2008


Hi!

Ingo Renner wrote:
> Problem:
> Up until now if you want to do a HTTP redirect you have to call multiple 
> functions.
> 
> Solution:
> To make this easier we need to introduce a single method.

+1, good feature! Possible we could use locationHeaderUrl directly inside header(), without assigning to $url. But I do not insist, current code is fine with me!

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. 

-- 
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