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

Benjamin Mack benni at typo3.org
Wed Sep 3 19:36:47 CEST 2008


Hey Dmitry,

Dmitry Dulepov [typo3] wrote:
> +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!
Yeah, I agree. Makes the thing more compact.

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

-- 
All the best,
benni.
-SDG-


More information about the TYPO3-team-core mailing list